Sign in to follow this  
george7378

'not a valid Win32 application'

Recommended Posts

george7378    1441

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
Jason Z    6434

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
george7378    1441

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
Jason Z    6434

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

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