Winnt. H (236): Error c2146
The following error occurs during project Compilation:
1> stdafx. CPP 1> C:/program files/Microsoft sdks/Windows/v6.0a/include/winnt. H (236): Error c2146: syntax error: Missing ";" (before the identifier "pvoid64)
1> C:/program files/Microsoft sdks/Windows/v6.0a/include/winnt. H (236): Error c4430: The type specifier is missing-it is assumed to be Int. Note: C ++ does not support default int
1> C:/program files/Microsoft sdks/Windows/v6.0a/include/winnt. H (7818): Error c2146: syntax error: Missing ";" (before the identifier "buffer)
1> C:/program files/Microsoft sdks/Windows/v6.0a/include/winnt. H (7818): Error c4430: The type specifier is missing-it is assumed to be Int. Note: C ++ does not support default int
1> C:/program files/Microsoft sdks/Windows/v6.0a/include/winnt. H (7818): Error c4430: The type specifier is missing-it is assumed to be Int. Note: C ++ does not support default int
After searching, it is found that the problem lies in the directory order of VC inclusion.
Adjust dxsdk/inclue to the end to solve the problem.
Reference: http://social.msdn.microsoft.com/forums/en-US/vclanguage/thread/51043152-3ab6-4a9e-b3c1-2dba8300d9bb/
* ** In an MFC project, any CPP file must contain # include "stdafx. H", preferably the first one. ***