Building a distributable EXE that can run on any computer without having the Microsoft Visual C++ 2008 Express Edition installed on their computer can be quite tricky. While searching around for a solution for our project, details in our newscast, I found a topic that had steps on how to do this. Here are the following steps:
1.) Change so that the project builds as a 'Static' application by going to:
PROJECT -> PROPERTIES -> C/C++ -> CODE GENERATION
Then change the
RUNTIME LIBRARY to be
MULTI-THREADED.
2.) Then on the developing computer (the computer you have C++ installed on), go to the
C:\windows\winsxs\ directory and copy the following files:
- Microsoft.VC90.CRT.manifest
- msvcm90.dll
- msvcp90.dll
- msvcr90.dll
3.) Create a directory on the root directory of your project (the directory that you have your EXE for your application in) and name it
Microsoft.VC90.CRT then paste the manifest file and the 3 DLL files into that folder.
I hope this puts you in the correct direction for distributing your projects to be executable on anyone's computer without having to make them install the development package for C++.
Source:
http://forum.leadwerks.com/viewtopic.php?f=37&t=2583&p=22536&hilit=Change+the+project+to+be+a+static+#p22536