"Illegal Function Call" When GetIcon of Wrong Icon ID (33300)
The information in this article applies to:
- Microsoft QuickBASIC Compiler for the Apple Macintosh 1.0
- Microsoft BASIC Interpreter for Apple Macintosh 3.0
This article was previously published under Q33300 SUMMARY
An "Illegal function call" error is generated on a GetIcon statement
if the specified icon ID does not match the actual icon ID that exists
in the resource file.
You can perform the following steps to view and/or change the ID
number of an icon (where the icon is stored in the resource fork of a
file):
- Run Resedit.
- Select the file that contains the icon.
- Display the icon.
- Select "Get Info" from the File menu (in Resedit).
- Change the value in the ID field.
- Close windows in Resedit and save the changes before exiting.
This information applies to Microsoft QuickBASIC Version 1.00, BASIC
Compiler Version 1.00, and BASIC Interpreter Version 3.00 for the
Apple Macintosh.
MORE INFORMATION
The purpose of the GetIcon routine is to return a handle to a
specified icon that is located in a resource file on disk. Once you
have established a handle for the icon, you can use other routines to
manipulate the icon as an object in the Macintosh heap.
In QuickBASIC, GetIcon is an MBLC routine built into QuickBASIC
itself.
In the earlier BASIC Compiler Version 1.00 and BASIC Interpreter
Version 3.00, GetIcon is a CODE routine provided in the "ToolLib"
LIBRARY file on the BASIC Toolbox disk.
Modification Type: | Major | Last Reviewed: | 10/30/2003 |
---|
Keywords: | KB33300 |
---|
|