mfc executable won't run on other machines
-
Hi everyone, I built an mfc application using visual studio 2008 (standard edition) c++ on a windows 7 OS. I've compiled the code as a "Release" build and it works great on my machine, but won't execute at all on any other machine (whether its Windows 7, xp, vista, etc). No error messages or anything. You briefly get the hour glass and then nothing. I've set the following options: "Use MFC in static library" and I've set the Runtime library to "Multi-threaded (/MT)" Any ideas? Thanks! P.S. The .net framework is the same version for my machine as for the others that I'd like it to run on, so that doesn't seem to be the problem.
-
Hi everyone, I built an mfc application using visual studio 2008 (standard edition) c++ on a windows 7 OS. I've compiled the code as a "Release" build and it works great on my machine, but won't execute at all on any other machine (whether its Windows 7, xp, vista, etc). No error messages or anything. You briefly get the hour glass and then nothing. I've set the following options: "Use MFC in static library" and I've set the Runtime library to "Multi-threaded (/MT)" Any ideas? Thanks! P.S. The .net framework is the same version for my machine as for the others that I'd like it to run on, so that doesn't seem to be the problem.
Try using Dependency Walker to find out if there is any missing dependency. Write the log or have messagebox to findout which function it is failing.
-- "Programming is an art that fights back!"
-
Try using Dependency Walker to find out if there is any missing dependency. Write the log or have messagebox to findout which function it is failing.
-- "Programming is an art that fights back!"
-
Hi, the dependency walker has a question mark besides the following dlls: GPSVC.DLL IESHIMS.DLL Would I try to locate these on my machine and then keep them in same folder as executable?
Better you can try installing VC++ 2008 Runtime in the target maching and if it fails still, you can try other things like copying DLL etc.. You may get some useful information by checking the system event log as it may have details of what error happened when application failed.
-- "Programming is an art that fights back!"
-
Better you can try installing VC++ 2008 Runtime in the target maching and if it fails still, you can try other things like copying DLL etc.. You may get some useful information by checking the system event log as it may have details of what error happened when application failed.
-- "Programming is an art that fights back!"
-
Thanks. I thought that by setting it to statically link mfc that all the necessary dll's would be imbedded into the binary, thus avoiding having to install the redistributable. Am I wrong?
-
Hi everyone, I built an mfc application using visual studio 2008 (standard edition) c++ on a windows 7 OS. I've compiled the code as a "Release" build and it works great on my machine, but won't execute at all on any other machine (whether its Windows 7, xp, vista, etc). No error messages or anything. You briefly get the hour glass and then nothing. I've set the following options: "Use MFC in static library" and I've set the Runtime library to "Multi-threaded (/MT)" Any ideas? Thanks! P.S. The .net framework is the same version for my machine as for the others that I'd like it to run on, so that doesn't seem to be the problem.
Put in some tracing[^] and see where your application fails on 'other' machines.
b-rad311 wrote:
P.S. The .net framework is the same version for my machine as for the others that I'd like it to run on, so that doesn't seem to be the problem.
An MFC program doesn't depend on .NET framework.
Workout progress:
Current arm size: 14.4in
Desired arm size: 18in
Next Target: 15.4in by Dec 2010Current training method: HIT
-
Thanks. I thought that by setting it to statically link mfc that all the necessary dll's would be imbedded into the binary, thus avoiding having to install the redistributable. Am I wrong?
-
Hi, the dependency walker has a question mark besides the following dlls: GPSVC.DLL IESHIMS.DLL Would I try to locate these on my machine and then keep them in same folder as executable?
-
Hi everyone, I built an mfc application using visual studio 2008 (standard edition) c++ on a windows 7 OS. I've compiled the code as a "Release" build and it works great on my machine, but won't execute at all on any other machine (whether its Windows 7, xp, vista, etc). No error messages or anything. You briefly get the hour glass and then nothing. I've set the following options: "Use MFC in static library" and I've set the Runtime library to "Multi-threaded (/MT)" Any ideas? Thanks! P.S. The .net framework is the same version for my machine as for the others that I'd like it to run on, so that doesn't seem to be the problem.
b-rad311 wrote:
No error messages or anything. You briefly get the hour glass and then nothing.
make sure they have a matching run-time release for VS2008. A run-time that is older than yours will offer no error message, only exit. get the latest runtime for your other machines and hopefully all will be well.
_________________________ John Andrew Holmes "It is well to remember that the entire universe, with one trifling exception, is composed of others." Shhhhh.... I am not really here. I am a figment of your imagination.... I am still in my cave so this must be an illusion....