CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 1999
    Posts
    3

    Make a VC6 Programm work on other computers

    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


  2. #2
    Join Date
    May 1999
    Posts
    42

    Re: Make a VC6 Programm work on other computers

    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?


  3. #3
    Join Date
    May 1999
    Posts
    34

    Re: Make a VC6 Programm work on other computers

    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


  4. #4
    Join Date
    Apr 1999
    Posts
    27,449

    Re: Make a VC6 Programm work on other computers

    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


  5. #5
    Join Date
    Jun 1999
    Location
    Pakistan
    Posts
    77

    I am having the same problem but.........

    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?


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured