Click to See Complete Forum and Search --> : Make a VC6 Programm work on other computers


MindChild
April 25th, 1999, 07:51 AM
Make a VC6 Programm work on other computers

I have made a Programm in VC6. It works fine. But when i copy the programm (exe) to other computers it doesnt start. Do i have to copy the dependends either? But I cant overwrite kernel32.dll
from win98 to win95!

Thanx for helping.... MindChild

Bob Clarke
April 25th, 1999, 09:47 AM
Make sure any files your program depends on, such as MFC42.DLL or MSVCRT.DLL, are installed on the target machine.

What error messages are you seeing when you try to start it on the other machine?

Marc Howe
April 25th, 1999, 01:07 PM
In VC++6 Pro, you can also link the MFC statically so that you do not have to figure out which MFC*.DLL files your program uses and export them to other machines.
To link statically (if you have VC++6 Pro), go to Project...Settings. When the property sheet comes up, it should be already on the <general> tab and then under the "Microsoft Foundation Classes" heading there is a combo box. Just select Use MFC in a Static Library from the combo box and then VC++ will add the MFC library to your .exe file. This will make your .exe larger (and maybe a little slower), but I prefer this method so that I do not have to have a setup program.

Hope this helps...
Marc

Paul McKenzie
April 25th, 1999, 11:16 PM
Actually, it makes the total number of files (and bytes) to distribute *smaller* if you link statically. When you consider the size of the MFC DLL's plus the .exe that you would have to distribute, you're better off linking statically.

Regards,

Paul McKenzie

aamirdogar
August 13th, 1999, 06:47 AM
I am having the same problem but the thing is that If we compile it Statically then it works on on win98 on other pc's. But it wouldn't work on win95.
This is what i have tested. Anybody with a solution?