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
Solved

Standalone MFC application

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

860 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