Solved

Standalone MFC application

Posted on 1998-07-12
2
283 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
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

Independent Software Vendors: 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

Suggested Solutions

Title # Comments Views Activity
Unix / Linux grid computing 5 169
Excel Use VBA to get user's Mac Address for their computer 5 344
sumDigits challenge 9 172
either24  challenge 19 105
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

696 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