I cannot run my application on another computer when I compile it in VS2008.

Error:
"This application has failed to start because the application configuration is incorrect."

and I have define WINVER to be 0x0400, and it is compiling in release mode.

and this is NOT .net

Its probably the DLLs. What version of os did you compile it on, and is it different than the one you tried to run it on?

In the compiler's install directory you will see a folder named "redist", which contains the DLLs you may have to install with your program.

On my computer he is here:
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT

Be very careful with those DLLs -- don't just copy them to windows directory, but copy them to the same folder that your program is in. If that does not fix the problem, then those DLLs will not help.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.