I usually hate asking questions but this one has me stumped.
I am creating a small game using C++ and Allegro5 in Visual Studio Professional 2013. I have used the Visual Studio 2013 – Windows XP (v120_xp) platform toolset, and made sure the Visual C++ 2013 redistributable was installed on the target machine.
I am developing using Windows 8.1, the target machine is running Windows XP SP2.
Whenever I attempt to run the program I receive a message stating .exe is not a valid Win32 application.
Even though I am not using anything related to .NET I have made sure that was installed on the target machine as well.
I have also made sure that the program itself is a 32 bit application.
I am really not sure what to try next. I have searched for the past few hours and made sure that anything necessary was installed. I am still rather new at this so it's quite possible I overlooked something simple, but I can't for the likes of me think of what.
The toolset supplied in Visual Studio 2019 and later doesn't include support for creating code for Windows XP. Support for Windows XP development is available by using the Visual Studio 2017 v141_xp toolset. You can install the v141_xp toolset as an individual component option in the Visual Studio Installer.
Hardware requirements. Visual studio 2012 may not work on Windows XP Or Windows Vista. You need windows 7, Windows 8, Windows Server 2008 R2 Or Windows Server 2012.
Visual Studio 2019 and later versions don't include current toolset support for creating code for Windows XP. Support for Windows XP development by using the v141_xp toolset that shipped in Visual Studio 2017 is still available as an optional component in the Visual Studio Installer.
you have to set the Platform Toolset configuration from properties (preview)
Set its value to v120_xp and it should work on windows xp.
read the post http://supportxpdotcom.wordpress.com/2013/07/16/xp-targeting-support-in-the-visual-studio-2013-preview/
see the comments http://blogs.msdn.com/b/vcblog/archive/2013/06/26/visual-studio-2013-preview-now-available.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With