Home > Back-end >  Vs2010 new MFC project compile error is the error C2065: "DWORD_PTR" : statement of identi
Vs2010 new MFC project compile error is the error C2065: "DWORD_PTR" : statement of identi

Time:10-02

Below is the error content:
Stdafx. CPP
1>
1> NOTE: WINVER has had been defined as 0 x0500 or greater which enables
1> Windows NT 5.0 and Windows 98 the features. When these headers were released,
1> Windows NT 5.0 beta 1 and 98 beta 2.1 were the current versions.
1>
1> For this release the when WINVER is defined as 0 x0500 or greater, you can only
1> Build a beta or test applications. To build a retail application,
1> The set WINVER to 0 x0400 or visit http://www.microsoft.com/msdn/sdk
1> To see if retail Windows NT 5.0 or 98 headers are available.
1>
1> See the SDK release notes for more information.
1>
1> D: \ \ Microsoft visual studio 10.0 vc \ atlmfc \ include \ afxv_w32 h (204) : error C2065: "DWORD_PTR" : no statement of identifiers
1> D: \ \ Microsoft visual studio 10.0 vc \ atlmfc \ include \ afxv_w32 h (204) : error C2143: syntax errors: lack of ";" (in front of the "GetWindowThreadProcessId")
1> D: \ \ Microsoft visual studio 10.0 vc \ atlmfc \ include \ atlconv h (91) : error C2061: syntax errors: identifier "LONG_PTR
"As an int, note: c + + does not support default int

1> D: \ \ Microsoft visual studio 10.0 vc \ atlmfc \ include \ atldebugapi h (34) : error C2146: syntax errors: lack of ") "(in front of the identifier" dwProcess ")
Ignore the modifier on the data

1> D: \ \ Microsoft visual studio 10.0 vc \ atlmfc \ include \ atldebugapi h (35) : error C2182: "AtlTraceSnapshotProcess" : the illegal use of type "void"
1> D: \ \ Microsoft visual studio 10.0 vc \ atlmfc \ include \ atldebugapi h (35) : error C2059: grammar errors: ") "


I use Windows 7 operating system (64), the computer inside besides installing vs2010, also installed the vc6.0;
If the precompiled header file is set to not use also complains: # include "stdafx. H" unable to open;
Before I have also established on vs2010 MFC project, then can run, I now use vc6.0 and vs2008 to establish the MFC project can be compiled through, but it is difficult to use when using 2008 openssl API,

CodePudding user response:

Try this article submitted solutions http://www.vcerror.com/? P=1008
  • Related