program is not a valid win32 application

i began reading a book - thinking in c++ by bruce eckel. and for each chapter i make a visual c++ project with all important stuff in it. but today i wanted to test my programs on another computer. mine is win7 ultimate sp1 x64 - my programs work here. but when i took the same program and put it on a win xp x86 my program don't work! it says it's not a valid win32 application? but when i make projects in vc++ i specify to make a console win32 app. so can you tell me what's wrong?
[For visual studio 13] In the project settings you have an entry 'platform toolset'. You need to choose explicitly XP otherwise it would not work there
thanks for reply but now i get a different error message. something about msvc120etc.dll. ok i won't make programs for xp then wtf..
this is not a xp issue. This has to do with 'runtime library' and whether the required dll is present on the target computer.

You can configure your projet so that it doesn't use these libs:

http://msdn.microsoft.com/en-us/library/2kzt1wy3.aspx
http://msdn.microsoft.com/en-us/library/vstudio/abx4dbyh%28v=vs.100%29.aspx


Use the /MT (for release) and respective /MTd (for debug) (don't confuse debug and release!)
Topic archived. No new replies allowed.