Jump to content
  • Advertisement
Sign in to follow this  
george7378

'not a valid Win32 application'

This topic is 2033 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 everyone,

 

I've recently tried some programs I wrote in DirectX on Windows 7 on two older WIndows XP PCs and both have given me the message '<application>.exe is not a valid Win32 program". Is this a problem with my coding, or is it that I don't have the right redistributable stuff installed on the XP computers? Is there a reason why this would happen, given that it certainly IS a Win32 program, and it runs fine on my Win7 PC?

 

Thanks!

Share this post


Link to post
Share on other sites
Advertisement

Have you ever used the tool called "Depends.exe"?  It can tell you what libraries your application depends on, and can help you resolve these types of questions.

Share this post


Link to post
Share on other sites

Thanks, I haven't seen that. I ran it and it seems that my application doesn't depend on anything that shouldn't be present in XP. It is dependent on some .DLLs such as the ones I'm using for my sound engine (and DirectX itself, of course), but I don't think they would produce a 'not a valid Win32 application' message - probably just a 'XXX.DLL wasn't found' or similar.

 

I've been looking around a bit and it seems that VS2012 compiled programs won't work on XP anyway (people have been getting the same message as me and it's because of the compiler). Perhaps I should try and recompile in VS2008 instead...

Share this post


Link to post
Share on other sites

Actually there is an update to VS2012 that allows compiling for WinXP.  I think it is a different compiler toolchain setting if I recall correctly....

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!