简体   繁体   English

Visual Studio 2010 win32编译的应用程序在Windows XP上不起作用

[英]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_x86vcredist2010sp1_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.

相关问题 Visual Studio 2010 Win32 App无法在Windows XP上启动 - Visual Studio 2010 Win32 App won't start on Windows XP 是否可以在 Windows 8 环境下运行在 Visual Studio 2005 上编译的 VC++、Win32 应用程序? - Is it possible to run VC++, Win32 application compiled on Visual Studio 2005 on Windows 8 environment? Windows XP 上的“不是有效的 win32 应用程序” - “is not a valid win32 application” on windows xp 如何在Visual Studio 2010 Express的Win32应用程序中使用Win32类库? - How do I use a Win32 Class Library in a Win32 Application in Visual Studio 2010 Express? Visual Studio:“不是 Win32 应用程序”错误 - Visual Studio: "Is not a Win32 application" error 为XP和Vista / Windows 7创建Win32应用程序 - Creating a Win32 application for both XP and Vista/Windows 7 Visual Studio 2010 for C ++ Win32中的智能感知能力很差 - Poor intellisense in Visual Studio 2010 for C++ Win32 Visual Studio 2012编译为XP - 无效的win32 - v110_xp - Visual Studio 2012 compile for XP - not valid win32 - v110_xp Windows 8的Visual Studio 2012不显示Win32控制台应用程序选项 - Visual Studio 2012 for windows 8 not showing win32 console application option 针对Windows 2000的Visual Studio 2012 Win32项目 - visual studio 2012 win32 project targeting windows 2000
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM