I made a simple script in C on my Windows 7 64 bit machine using CodeBlocks. It basically just accepts command line arguments and then concatenates them into a char array. I compiled it on Codeblocks and it runs on my Windows 7 machine. But when I move it to the Windows XP I get error...
C:\Documents and Settings\Computer\Desktop\program.exe is not a valid Win32 application.
I am still new to C and wasn't sure if I need to put this in a Windows XP machine and compile it. I have been using the TDM-64 compiler and was thinking maybe that had to do with something. So I removed that and removed Codeblocks and then reinstalled it using the package that comes with a compiler. I then tried again and same error. So I ran the same installer on XP and compiled the code and it worked. Do I have to compile it on XP to run on XP? Or is it possible to configure Win 7 Codeblocks to make it run on XP?