How to List All STR# Resources as GetIndString & GetString Do (51731)
The information in this article applies to:
- Microsoft QuickBASIC Compiler for the Apple Macintosh 1.0
This article was previously published under Q51731 SUMMARY
This article describes how to access all the strings in the STR#
resource in the System file. The sample program displays all the
strings in a given ID number to the screen. The program uses GetRes
(an MBLC routine built into QuickBASIC) and PEEK functions.
The program below gives you an alternative to executing the GetString
and GetIndString toolbox calls, which are listed in Apple's "Inside
Macintosh" Volume I (published by Addison-Wesley). You cannot directly
call GetString and GetIndString from QuickBASIC, because QuickBASIC's
ToolBox statement can't call routines that are not in ROM. ("Inside
Macintosh" indicates which routines are or aren't in ROM.) You would
normally need to call C or another language from QuickBASIC to invoke
GetString and GetIndString.
Modification Type: | Minor | Last Reviewed: | 1/8/2003 |
---|
Keywords: | KB51731 |
---|
|