Microsoft KB Archive/32974

= How to Create a Macintosh Pure-Code Resource Library =

Article ID: 32974

Article Last Modified on 11/21/2006



This article was previously published under Q32974



SUMMARY
The steps for turning a C or Pascal program into a Macintosh pure-code resource depend upon which compiler you have. However, the following five steps must be done before you can use the pure-code resource in a QuickBASIC library file:


 * 1) The file creator type must be set to MSBB for the binary version of QuickBASIC or MSBD for the decimal version.
 * 2) The file type must be MSBL.
 * 3) Each pure-code resource must have a resource type of MBPC.
 * 4) You must assign an ID number to each pure-code resource. The ID number must be unique within the library and across libraries if you use multiple libraries.
 * 5) Each pure-code resource must have a resource name. The resource name is the name used to call the routine from QuickBASIC.



MORE INFORMATION
You can create two kinds of libraries to use with QuickBASIC: libraries of pure-code resources and libraries of assembly-language routines.


 * 1) Pure-code resources are libraries of routines that are written in a high-level language such as C or Pascal, compiled into pure code, then combined into a resource file. (The QuickBASIC Compiler itself is not able to output pure code.)
 * 2) Assembly-language libraries are first written in assembly language, then assembled, and finally combined into a resource files containing code resources.

For instructions on how to create a pure-code resource library using C or Pascal, please refer to the &quot;Microsoft QuickBASIC for the Apple Macintosh: Language Reference&quot; manual Pages 444 - 467, particularly Pages 450 - 451.

Additional query words: MQuickB

Keywords: KB32974

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.