The information in this article applies to:
SYMPTOMS
Currently there is no support for manipulating project settings with a
Custom AppWizard. Default settings are automatically used based on the
type of application that the Custom AppWizard is based on, such as a
console application, or an MFC application.
Q173483 HOWTO: Create Custom AppWizards that Generate Non-MFC Projects RESOLUTIONTo work around this limitation, you can add a pragma to one of the base project's header files to automatically link the project with a specific library. The pragma takes the following form:
This places a library-search record in the object file. The libname
parameter is the filename (and optionally the path) of the library you want
the linker to search. Because the library name precedes the default library-
search records in the object file, the linker searches for this library
just as if you had named it on the command line. You can place multiple
library-search records in the same source file; each record appears in the
object file in the same order in which it is encountered in the source
file.
This technique is identical to the technique used by MFC to link different types of MFC applications to the proper MFC libraries. STATUSThis behavior is by design. REFERENCESFor additional information on #pragma comment and on MFC's use of #pragma comment(lib, libname), query the Visual C++ Online Documentation using the following keywords:
Additional query words:
Keywords : kbwizard kbMFC kbVC kbVC400 kbGrpDSTools |
Last Reviewed: January 31, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |