Question : Visua Studio console program "not a valid Win32 application"

A Visual Studio 2008 C++ Win32 console program works fine. When converted to Visual Studio 2010, the release version of the program is 5.8 times the former size. I posted the executable in the CGI-Bin on my site. When called via the website the program fails with this error message: "%1 is not a valid Win32 application".

The program is run on a 32 bit server. The target machine in Visual Studio properties is set at MachineX86.

Priority # 1: How do I get the program to work? If it is a question of setting properties, which ones need to be changed to what?

Priority # 2: Is there any way (other than switching back to VS 2008) of getting rid of the bloat? How do I get the executable size back down to something reasonable?

Answer : Visua Studio console program "not a valid Win32 application"

Things learned today:
[1] My ISP has my site on a Windows 2000 server. (I thought it was Windows 2003.)
[2] Windows 2000 is not supported by Visual Studio 2010.
[3] According to  http://en.wikipedia.org/wiki/Windows_2000: "Over ten years after its release, it [Windows 2000] continues to receive patches for security vulnerabilities nearly every month and will continue to do so until 13 July 2010."
[4] The bloat factor is VERY nicely gotten around by switching to a Unix compile.

In the next 12 days, I need to migrate to a new server.  Guess which O/S will win my business?

Many thanks, jkr, for your ideas and insights.
Random Solutions  
 
programming4us programming4us