下面是報錯內容:
> stdafx.cpp
1>
1> NOTE: WINVER has been defined as 0x0500 or greater which enables
1> Windows NT 5.0 and Windows 98 features. When these headers were released,
1> Windows NT 5.0 beta 1 and Windows 98 beta 2.1 were the current versions.
1>
1> For this release when WINVER is defined as 0x0500 or greater, you can only
1> build beta or test applications. To build a retail application,
1> set WINVER to 0x0400 or visit http://www.microsoft.com/msdn/sdk
1> to see if retail Windows NT 5.0 or Windows 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”: 未宣告的識別符號
1>d:\microsoft visual studio 10.0\vc\atlmfc\include\afxv_w32.h(204): error C2143: 語法錯誤 : 缺少“;”(在“GetWindowThreadProcessId”的前面)
1>d:\microsoft visual studio 10.0\vc\atlmfc\include\atlconv.h(91): error C2061: 語法錯誤: 識別符號“LONG_PTR”
定為 int。注意: C++ 不支持默認 int
1>d:\microsoft visual studio 10.0\vc\atlmfc\include\atldebugapi.h(34): error C2146: 語法錯誤: 缺少“)”(在識別符號“dwProcess”的前面)
忽略資料上的修飾符
1>d:\microsoft visual studio 10.0\vc\atlmfc\include\atldebugapi.h(35): error C2182: “AtlTraceSnapshotProcess”: 非法使用“void”型別
1>d:\microsoft visual studio 10.0\vc\atlmfc\include\atldebugapi.h(35): error C2059: 語法錯誤:“)”
我使用的是win7(64位)作業系統,電腦里面除了安裝vs2010外,還安裝了vc6.0;
如果把預編譯頭檔案設定為不使用還會報錯:#include "stdafx.h" 無法打開;
之前我在vs2010上也建立過mfc工程,那時是可以運行的,目前我使用vc6.0和vs2008來建立mfc工程是可以編譯通過的。但是使用2008的時候難以使用openssl api 。
uj5u.com熱心網友回復:
可以試試這篇文章中提交的解決方法http://www.vcerror.com/?p=1008轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/105704.html
