Using visual studio 2008 I created a small vc++ project and ran it using the exe created.
The problem is the exe runs fine on my PC.
But when I tried to run the exe on an another PC it gave the error "The application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem."
Any idea as to what may be causing this error and how to resolve it?

Recommended Answers

All 4 Replies

I seem to recall the error being more clear and specific when this is the case, but could it be that the other PC needs the visual c++ redistributable package installed on it?

Did you build it as a shared DLL or using a static library?

I seem to recall the error being more clear and specific when this is the case, but could it be that the other PC needs the visual c++ redistributable package installed on it?

Thanks Donald for the reply.
Anyway I solved the issue by changing the project configuration.
In the Project Properties >>> C/C++ Code Generation >>> Run Time Library I selected /MT which solved the problem. Earlier it was /MD which which was causing the error.

That is not the solution. Donald was asking right question.
There is only two way
1st is to build ur binary with static link to MFC dll or
2nd U will need to ship MFCVC80.dll with ur binary

Thats one of the correct solution.
By using /MT(MultiThreading) I have statically linked the library.
Earlier it was dll since I had used /MT.

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.