[英]Visual Studio 2010 win32 compiled application does not work on windows xp
I'm working on a project that should run on all windows platforms. 我正在开发一个应该在所有Windows平台上运行的项目。 It is written in c++, using only the Windows API.
它是用c ++编写的,只使用Windows API。 When I compile it in Visual Studio 6 on Windows XP, I can run it on Windows XP.
当我在Windows XP上的Visual Studio 6中编译它时,我可以在Windows XP上运行它。 When I run it in Visual Studio 2010 and run it on Windows XP it did not work.
当我在Visual Studio 2010中运行它并在Windows XP上运行它时它不起作用。 I did install vcredist2010_x86 , vcredist2010sp1_x86 and .NET versions 3.5 and 4.0 on Windows XP SP3.
我在Windows XP SP3上安装了vcredist2010_x86 , vcredist2010sp1_x86和.NET版本3.5和4.0。 But it still doesn't work.
但它仍然无效。 I added the following preprocessor symbols to my project:
我在项目中添加了以下预处理程序符号:
#define _WIN32_WINNT 0x0501
#define WINVER 0x0501
#define NTDDI_VERSION 0x0501
but it still doesn't work. 但它仍然无效。 My VS 2010 platform toolset is v100 .
我的VS 2010平台工具集是v100 。
Question : What do I need to do to compile an application using Visual Studio 2010, that can be executed on Windows XP? 问题 :使用Visual Studio 2010编译可以在Windows XP上执行的应用程序需要做什么?
I'm using VS2010_sp1 on window_7_sp1_x64 and with 'release' mode. 我在window_7_sp1_x64和'release'模式下使用VS2010_sp1。 I added #define previous to my include section.
我在我的include部分之前添加了#define。 And I've tested NTDDI_VERSION to 0x05010300 but problem is still alived!
我已经测试了NTDDI_VERSION到0x05010300,但问题仍然存在! The error, showed by win_xp is: "program.exe has encountered a ploblem and needs to close."
win_xp显示的错误是:“program.exe遇到了问题,需要关闭。” At all, I think, program needs dll or something to install on windows xp to run correctly!
我认为,程序需要dll或者其他什么来安装在windows xp上才能正常运行!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.