Solved

Standalone MFC application

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Replacement selected text 2 58
Define unique primary key 9 89
Prevent this page from creating additional dialogs. 3 395
while loop over for loop 7 92
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…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

911 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now