FIX: CUSTOMWZ Sample Partially Overwrites Custom AppWizard Code (192108)
The information in this article applies to:
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
This article was previously published under Q192108 SYMPTOMS
Building the CUSTOMWZ sample distributed with Visual C++ version 5.0
overwrites the Custom AppWizard project wizard. If you modify the CUSTOMWZ
sample and build it, you lose the standard Custom AppWizard functionality.
CAUSE
Custom AppWizards normally contain a project build step that copies the new
wizard file to the <DevStudio path>\Template directory.
The CUSTOMWZ sample is the actual source code for the Custom AppWizard
project wizard. The CUSTOMWZ project's custom build step copies the
resulting output file to <DevStudio path>\SharedIDE\bin\ide rather than to
the Template directory. However, the Help file, which has its own custom
build rule, is copied to the Template directory where a wizard project
would normally go.
RESOLUTION
In the downloaded CUSTOMWZ project, change the project custom build rule to
point to the Template directory: - On the Project menu, click Settings.
- In the Settings For list box, select "All Configurations".
- Click on the Custom Build tab.
- Replace the three occurrences of $(MSDEVDIR)\bin\ide to
$(MSDEVDIR)\Template. Two occurrences appear in Build command(s) and one
in Output file(s).
- Click OK to save the settings.
- On the File menu, click Save All to save the changed settings.
Additionally, you may wish to change the project's version resource
ProductName and FileDescription fields to "Custom AppWizard Sample," to
avoid confusing it with the standard Custom AppWizard. Otherwise, both have
the same name and can be difficult to distinguish in the New Projects list.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This bug has been corrected in the
CUSTOMWZ sample released with Visual C++ version 6.0.
REFERENCES
Visual C++ Documentation: Samples; Custom AppWizard Samples; CUSTOMWZ: A
Custom AppWizard
Modification Type: | Major | Last Reviewed: | 10/17/2003 |
---|
Keywords: | kbAppWizard kbBug kbCustomWizard kbDocs kbfix kbVC600fix kbwizard KB192108 |
---|
|