thanks for you interest! No, I didn’t use CMake for the simple console application attached in the example.
I generated it using VS2015 with the default configuration. In fact, by default the #include “stdafx.h” has been inserted by the compiler. I cannot remove it, otherwise it doesn’t build. In the stdafx.h I just have the following lines of code:
#pragma once #include "targetver.h" #include <stdio.h> #include <tchar.h>
and inside the targetver just this line:
#pragma once #include <SDKDDKVer.h>