Solved

knowing what to distribute?

Posted on 1998-12-26
3
163 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
Among others, I monitor the Windows Installer zone and Installer zone. I find that many of the questions could be answered much more quickly if a Windows Installer verbose log were submitted with the question.   However, I do not always have t…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

744 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

12 Experts available now in Live!

Get 1:1 Help Now