"Application has failed to start because the application configuration is incorrect"
I am compiling and running successfully my program with VS 2008 express on three computers that have VS installed. I get the above error message when I download the .exe and run on a computer that does not have VS installed. I use only windows.h. Any hints what should I do?
You are running under Windows XP.
You are linking dynamically to the runtime as opposed to linking statically.
You are generating and embedding a manifest when compiling and linking.
The most straightforward approach: Go to http://download.microsoft.com and search for the VC++ 2008 Redistributable package. This is the C++ runtime used by Visual Studio 2008. Your application will only run in computers that have the runtime for 2008 installed.
Alternative approach: Statically link against the runtime and don't generate a manifest file. To be honest, I wouldn't remove the manifest file unless static linking doesn't work by itself. Try before you remove.