Multiple Resources with Same ID Number Saved in Resource File (32975)
The information in this article applies to:
- Microsoft QuickBASIC 1.0
- Microsoft BASIC Compiler
- Microsoft BASIC Interpreter for Apple Macintosh 3.0
This article was previously published under Q32975 SUMMARY
The routines that save resources to a resource file (listed below) do
NOT overwrite (replace) an existing resource that has the same ID
number. Instead, the following routines place a second resource with
the same ID in the file:
AddCursor, AddIcon, AddPattern, AddPicture, AddRes, AddString,
SaveArray, SaveCursor, SaveIcon, SavePattern, SavePicture,
SaveString
You can avoid writing two resources with the same ID number in a
resource file by executing GetRes to get the handle of the existing
resource, then executing RemoveRes to delete it before saving the new
resource.
This information applies to the above routines in Microsoft QuickBASIC
Version 1.00 (MBLC toolbox library routines), Microsoft BASIC Compiler
Version 1.00 (LIBRARY "ToolLib" routines), and Microsoft BASIC
Interpreter Version 3.00 for the Apple Macintosh (LIBRARY "ToolLib"
routines).
Modification Type: | Minor | Last Reviewed: | 8/16/2005 |
---|
Keywords: | KB32975 |
---|
|