我有一個可執行文件,由Windows 7 SP1 32位MSVS2013編譯,C運行時靜態鏈接和平臺工具集「Visual Studio 2013 - Windows XP (v120_xp)「可執行文件有效的Win7和WinXP專業版SP3「不是有效的Win32應用程序(193)」
它在Win7上完美運行(請參閱Dependency Walker性能分析附件截圖)。
它無法在WinXP運行:
這裏是剖面測井:
Starting profile on 12/9/2014 at 2:55:03 AM
Operating System: Microsoft Windows XP Professional (32-bit), version 5.01.2600 Service Pack 3
Program Executable: c:\temp\OCTOPUS.EXE
Program Arguments:
Starting Directory: C:\Temp\
Search Path: C:\Program Files\ActiveState Komodo Edit 8\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\MATLAB\R2009b\runtime\win32;C:\Program Files\MATLAB\R2009b\bin;C:\VisaPoint\sbperl\perl\bin
Options Selected:
Simulate ShellExecute by inserting any App Paths directories into the PATH environment variable.
Log DllMain calls for process attach and process detach messages.
Log DllMain calls for all other messages, including thread attach and thread detach.
Hook the process to gather more detailed dependency information.
Log LoadLibrary function calls.
Log GetProcAddress function calls.
Log thread information.
Use simple thread numbers instead of actual thread IDs.
Log first chance exceptions.
Log debug output messages.
Use full paths when logging file names.
Log a time stamp with each line of log.
Automatically open and profile child processes.
--------------------------------------------------------------------------------
00:00:00.000: Failure starting the process. %1 is not a valid Win32 application (193).
[1]: http://i.stack.imgur.com/m82n6.png
[2]: http://i.stack.imgur.com/6Yr37.png
機器中發生故障的CPU是什麼? VS2013的默認設置會生成不能在某些AMD處理器上運行的可執行文件。 – 2014-12-09 11:45:20
[Visual Studio 2013中的Windows XP和Windows Server 2003支持]的可能重複(http://stackoverflow.com/questions/19724029/windows-xp-and-windows-server-2003-support-in-visual-studio- 2013) – sashoalm 2014-12-09 12:58:46