FIX: Error: Undefined Symbol 'DOC' from Custom AppWizard (152482)
The information in this article applies to:
- Microsoft Visual C++ 4.0
- Microsoft Visual C++ 4.1
- Microsoft Visual C++ 4.2
This article was previously published under Q152482 SYMPTOMS
When using a Custom AppWizard that uses the Standard AppWizard step defined
by APWZDLG_APPTYPE (generating an EXE), it is possible to get this error
message:
Undefined Symbol 'DOC'
CAUSE
This behavior occurs if the user did not explicitly select a language in
the first step of the Custom AppWizard. Occasionally the language combo box
will not initialize with a default language, and if the user does not
select one, this error message can occur. If the user moves off the first
step, and then back, the combo box will reset and select the first entry in
the list as default.
For more information on a related bug, please see the following article in
the Microsoft Knowledge Base:
152255 PRB: Custom AppWizard Doesn't Initialize Custom Step Dialogs
RESOLUTION
The selection of a language maps to the NUM_LANGS dictionary entry. You
can add code to one of your custom dialog steps to ensure that this
dictionary item is selected, and instruct the user to return to the first
step. This forces the combo box to select a default language and ensures
that it matches the user's expectations. This is only necessary for Custom
AppWizards that use SetSupportedLanguages().
Code to confirm the definition of NUM_LANGS is in the More Information
section below.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This problem was corrected in Microsoft
Visual C++, version 5.0.
Modification Type: | Major | Last Reviewed: | 10/24/2003 |
---|
Keywords: | kbBug kbfix kbNoUpdate kbVC500fix kbwizard KB152482 |
---|
|