另外补充一下模板文件的一个修改。修改xp系统C:\Program Files\Autodesk\ObjectARX Wizards for AutoCAD 2012\ArxAppWiz\Templates\1033\StdAfx.h
或win7系统C:\Program Files(x86)\Autodesk\ObjectARX Wizards for AutoCAD 2012\ArxAppWiz\Templates\1033\StdAfx.h
找到定义winver那段
- //----- Modify the following defines if you have to target a platform prior to the ones specified below.
- //----- Refer to MSDN for the latest info on corresponding values for different platforms.
- #ifndef WINVER //----- Allow use of features specific to Windows 95 and Windows NT 4 or later.
- #define WINVER 0x0400 //----- Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
- #endif
- #ifndef _WIN32_WINNT //----- Allow use of features specific to Windows NT 4 or later.
- #define _WIN32_WINNT 0x0400 //----- Change this to the appropriate value to target Windows 2000 or later.
- #endif
- #ifndef _WIN32_WINDOWS //----- Allow use of features specific to Windows 98 or later.
- #define _WIN32_WINDOWS 0x0410 //----- Change this to the appropriate value to target Windows Me or later.
- #endif
- #ifndef _WIN32_IE //----- Allow use of features specific to IE 4.0 or later.
- #define _WIN32_IE 0x0400 //----- Change this to the appropriate value to target IE 5.0 or later.
- #endif
替换成这段,不然v100会提示错误,更高版本也还要修改。以后再加上即可。 - #if _MSC_VER 1500 // vc9
- #ifndef WINVER // Allow use of features specific to Windows 95 and Windows NT 4 or later.
- #define WINVER 0x0501 // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
- #endif
-
- #ifndef _WIN32_WINNT // Allow use of features specific to Windows NT 4 or later.
- #define _WIN32_WINNT 0x0501 // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
- #endif
-
- #ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or later.
- #define _WIN32_WINDOWS 0x0501 // Change this to the appropriate value to target Windows Me or later.
- #endif
-
- #ifndef _WIN32_IE // Allow use of features specific to IE 4.0 or later.
- #define _WIN32_IE 0x0601 // Change this to the appropriate value to target IE 5.0 or later.
- #endif
- #else
- //- Modify the following defines if you have to target a platform prior to the ones specified below.
- //- Refer to MSDN for the latest info on corresponding values for different platforms.
- #ifndef WINVER //- Allow use of features specific to Windows 95 and Windows NT 4 or later.
- #define WINVER 0x0400 //- Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
- #endif
- #ifndef _WIN32_WINNT //- Allow use of features specific to Windows NT 4 or later.
- #define _WIN32_WINNT 0x0400 //- Change this to the appropriate value to target Windows 2000 or later.
- #endif
- #ifndef _WIN32_WINDOWS //- Allow use of features specific to Windows 98 or later.
- #define _WIN32_WINDOWS 0x0410 //- Change this to the appropriate value to target Windows Me or later.
- #endif
- #ifndef _WIN32_IE //- Allow use of features specific to IE 4.0 or later.
- #define _WIN32_IE 0x0400 //- Change this to the appropriate value to target IE 5.0 or later.
- #endif
- #endif
|