Solved

knowing what to distribute?

Posted on 1998-12-26
3
167 Views
Last Modified: 2013-11-14
I am a relative beginner to MSVC++ and I have a couple of fairly basic questions. Firstly, if I am building an MFC app, for example I just run the MFC app wizard and build a simple SDI application, what files should be distributed for deployment. Do I need to distribute the entire MFC42.dll even for this small application? In relation to this, are there any low cost (or free) setup software tools similar to installshield which can be recommended? Something like the utility which comes with VB would be nice.

Thanks and merry Christmas to all

Andrew
0
Comment
Question by:agrillage
  • 2
3 Comments
 
LVL 11

Accepted Solution

by:
alexo earned 70 total points
ID: 1181051
>> Do I need to distribute the entire MFC42.dll even for this small application?
In general, yes.  However, you may link your application with the static MFC library instead of the DLL so no DLL will be needed.

>> are there any low cost (or free) setup software tools similar to installshield which can be recommended?
First, MSVC comes with a basic version of Install Shield.  Also, you can search on the net.  See:
http://search.shareware.com/code/engine/Find?logop=and&cfrom=quick&orfile=True&hits=25&search=install&category=MS-Windows95
0
 
LVL 1

Author Comment

by:agrillage
ID: 1181052
OK for the mfc42.dll, but what about other files? How do I get a list of all files necessary for distribution?

Thanks for the quick answer though Alexo. I promise not to extend the question further than this. The points will be yours.

Andrew
0
 
LVL 11

Expert Comment

by:alexo
ID: 1181053
A list of DLLs is easy.  Each module contains a list of the DLLs it loads statically.  You can get the list using tools like quickview (comes with windows) or dumpbin (comes with msvc).  You can also get a 3rt party tool that will do a recursive scan.  One is available from http://www2.aros.net/~press/utilities/dllman.htm

Now, if some modules load DLLs dynamically (using LoadModule() functions) you'll have to do a run-time analysis.  A tool that does that is available from http://www.execpc.com/~sbd/DLLShow.html

If your application is small you will probably benefit from statically linking to MFC, the C/C++ run-time library etc. instead of using the DLLs.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

763 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