Sign in to follow this  

EXE compiled on Vista won't run on XP (Visual Studio 2005/Native C++) [SOLVED]

This topic is 3457 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi! My home PC runs Vista (32 bit business) and so does my notebook (32 bit home premium). When I compile a C++ Project with Visual Studio 2005 SP 1 on Vista, the EXE it produces will run fine on Vista, but it won't start up on XP (Brings up a Dialog with a message along the lines of "The app is not correctly configured"). When re-compiling the same APP (unmodified source code) on XP, it will run just fine on XP. I've had this problem with two separate applications, one being a really simple console app that didn't do anything fancy (and most likely nothing Vista specific). So I was wondering what could be causing that? Btw.: I'm talking debug-builds but I had the same phenomenon with release builds. Thanks a bunch! [Edited by - Harry Hunt on June 25, 2008 11:10:10 AM]

Share this post


Link to post
Share on other sites
Quote:
Original post by Harry Hunt
Wow, that was quick!
The XP machine has Visual Studio 2005 installed as well... maybe debug builds don't work across OSes though (which would be understandable). Thanks for the reply though.
Is it the exact same version of Visual Studio on all machines? If not, that's likely to be the problem with debug builds.

Share this post


Link to post
Share on other sites
Quote:
Original post by Evil Steve
Generally speaking, debug builds will only run on machines with Visual Studio installed.


Are you sure? Why VS should be present for debug executables? I mean debug executable = release executable - optimizations [ + usually debug info].

Share this post


Link to post
Share on other sites
Quote:
Original post by bubu LV
Quote:
Original post by Evil Steve
Generally speaking, debug builds will only run on machines with Visual Studio installed.


Are you sure? Why VS should be present for debug executables? I mean debug executable = release executable - optimizations [ + usually debug info].


Yes, but debug executables are linked to the debug version of the runtime libraries, which can't be (legally) distributed in a separate package like the release runtime libraries are. They can't only be installed with Visual Studio.

Share this post


Link to post
Share on other sites

This topic is 3457 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this