Solved

Standalone MFC application

Posted on 1998-07-12
2
288 Views
Last Modified: 2013-11-19
I've written a MFC program using MFC AppWizard (EXE). But however when I just send only the .EXE file to a remote computer, it doesn't run and produce an error which says that a particular DLL is not found. My question here is how can I compile the whole program into a single .EXE file so that it can be run in remote computer?
For your information, my platform is Windows 98 and I'm using Microsoft Visual C++ version 5.0.

Any help offered is very much appreciated!
0
Comment
Question by:justinng
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
atari earned 20 total points
ID: 1319061
If you want to distribute your .exe-file there is no chance to compile the .exe-file as stand alone program. You have also to distribute the needed .DLL's that are located in C:\WINDOWS\SYSTEM (for example if you are using VC++ 5.0 you have also to distribute MFC42.DLL, MPR.DLL, msvcirt.dll, msvcrt.dll,msvcrt20.dll, msvcrt40.dll and maybe the newest comctl32.dll).
How can you find out, which DLL your program need ?
Sorry, thui, that I was the first for answering:
Look at the homepage of thui, the expert on this site with 80000 points, must be: http://ww.slip.net/~thui/Computers for a program, that is called DLLLOOK. Load this from his web-site and call your program after starting DLLLOOK. This program list you all needed DLL's, that you must distribute with your program.
There can also problems occure, if you want to run your program on a machine with Windows NT installed. The DLL's for Windows NT have another size then the DLL's for Windows 95/98. Maybe you have to buy InstallShield for distributing your program on several platforms.

Maybe that helped you a little bit.
Bye,
atari
0
 

Author Comment

by:justinng
ID: 1319062
It helped indeed :) Thanks atari!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question