Solved

Standalone MFC application

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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 seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

762 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

16 Experts available now in Live!

Get 1:1 Help Now