FIX: IDE Inconsistently Generates Dependencies for Resources

Last reviewed: September 18, 1997
Article ID: Q114533
1.00 1.50 WINDOWS kbtool kbfixlist kbbuglist

The information in this article applies to:

  • The App Studio, included with: Microsoft Visual C++ for Windows, versions 1.0 and 1.5

SYMPTOMS

After adding a new bitmap, icon, or cursor resource to a resource script file in App Studio and disabling the Discardable property, the new file containing the resource is not included in the dependency list for the current project. Additionally, there is no dependency for the file in the project makefile.

RESOLUTION

When a resource is initially created within App Studio, the Discardable, Moveable, and Pure properties are enabled by default while the Preload property is initially disabled. If the properties for the resource are returned to this state, the dependencies for the resource file are generated correctly.

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 Visual C++ version 2.0.

MORE INFORMATION

To re-create this problem, use the following steps with an existing, working application generated by AppWizard:

  1. Open the project in the Visual Workbench by choosing Open from the Project menu.

  2. Select the .MAK file, and then choose the OK button to load the project.

  3. Open App Studio by choosing App Studio from the Tools menu.

  4. Create a new resource by choosing the New button.

  5. Select Icon for the resource type, and then choose the OK button to create the resource.

  6. Close the icon by choosing the Close button from the System menu box.

  7. View the properties for the resource by choosing the Properties button.

  8. Make a note of the new filename displayed in the Filename box. (It will be something like ICON1.ICO.)

  9. Disable or uncheck the Discardable and Moveable properties for the resource so that only the Pure property is enabled/checked.

10.Save the resource file by choosing Save from the File menu.

11.Switch back to the Visual Workbench. Rescan dependencies for the

   project by choosing Scan All Dependencies from the Project menu.

After completing the steps listed above, if the project .MAK file is viewed as a text file, the new resource filename noted in step 8 above is not present in any of the dependency lists.


Additional reference words: 1.00 1.50
KBCategory: kbtool kbfixlist kbbuglist
KBSubcategory: AppStudioIss
Keywords : AppStudioIss kb16bitonly kbbuglist kbfixlist kbtool
Version : 1.00 1.50
Platform : WINDOWS
Solution Type : kbfix


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 18, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.