Hi, I have created a trading program in a .exe file. On the computer I created it, if I put it in a folder I can run the .exe file and the program works. However if I run the .exe file on another computer (that does not have VS C++ on it) I get the following msg "The application has failed to start because the application configuration in incorrect. Reinstalling the application may fix this problem" I'm thinking that on the problem is that I don't have one of the libraries installed. I'm not sure how I include this w/ out installing VS C++ on this computer any help would be appreciated Thanks
this will happen if you don't have the vc++ runtime installed on a new machine: http://www.microsoft.com/downloads/details.aspx?FamilyID=32BC1BEE-A3F9-4C13-9C99-220B62A191EE also there's a service pack: http://www.microsoft.com/downloads/details.aspx?familyid=200b2fd9-ae1a-4a14-984d-389c36f85647
I don't know if its still the case, but there used to be an option to statically link the libraries rather than dynamically linking them, thus no .DLL's required on the target machine. Of course the resulting exe is much larger....
thank you for your help. I install both of these on the machine. Could it be that I'm using an MFC application. I probably need those libraries
here's the microsoft recommendations for distributing MFC apps and the dlls to include: http://msdn.microsoft.com/en-us/library/ms235264(VS.80).aspx
I am not sure which version of Visual Studio or other developers tools you are using. But if you are using Visual Studio you can create an installer project which will create a MSI install package. In that package it is possible to include all the DLLs that you are dependant on. At installation the Windows installer will only install the missing pieces as needed.
Download this program and load your .exe into it. It will tell you all .dll's your program is dependent on and if any are missing from the box you are running on. http://www.dependencywalker.com/
pardon me. first, it's bad enough that you're using c++. second, since you're using visual c++, why are you bothering with mfc? the "visual" in visual c++ means that you can build windows applications directly with visual c++