Monday, 4 March 2013

Other Options


Other Options

The fifth step in running AppWizard to create an executable Windows program
 asks the leftover questions that are unrelated to menus, OLE, database
access, or appearance. Do you want comments inserted in your code? You certainly do.
That one is easy.
 The fifth step of building an application with AppWizard is to decide on comments and the
MFC library.
The next question isn't as straightforward. Do you want the MFC library as a shared
DLL or statically linked? A DLL (dynamic link library) is a collection of functions used
by many different applications. Using a DLL makes your programs smaller but makes the
installation a little more complex. Have you ever moved an executable to another
directory, or another computer, only to find it won't run anymore because it's missing
DLLs? If you statically link the MFC library into your application, it is larger, but it is
easier to move and copy around.
If your users are likely to be developers themselves and own at least one other
application that uses the MFC DLL or aren't intimidated by the need to install DLLs as
well as the program itself, choose the shared DLL option. The smaller executable is
convenient for all. If your users are not developers, choose the statically linked
option. It reduces the technical support issues you have to face with inexperienced users.
If you write a good install program, you can feel more confident about using shared
DLLs.
After you've made your Step 5 choices, click Next to move to Step 6.

No comments:

Post a Comment