On Friday, November 1, 2002, at 11:15 AM, Pete Beaumont wrote: >> >> Status is an FB^3 TBAlias for PBStatusImmed. >> Control is a TBAlias for PBControlSync. >> The reason for the wrong names (Status and Control) is lost in mists >> of FB antiquity. >> >> Use the correct names, and the two calls should be available in >> - a PPC compile, run in OS 8/9 or in Classic mode under OS X. >> Nothing extra is required. >> - a Carbon compile, run in OS 8/9 or in Classic mode under OS X. >> Somewhere in your app's start-up, you *must* include the line >> fn GetCRMPBxxFuncPointers >> to import the routines from InterfaceLib. > > What's GetCRMPBxxFuncPointers do ? > > And how do I use it... > > Pete... (the other one) fn GetCRMPBxxFuncPointers allows you to use PBStatusImmed PBControlSync PBOpenSync in a Carbon-compiled app run in OS 8/9. These 3 routines are not exported by CarbonLib. GetCRMPBxxFuncPointers performs a strange trick to locate the routines in InterfaceLib and calls through some glue code, so that you can use the three toolbox routines just as you would in a PPC compile. Without GetCRMPBxxFuncPointers, attempting to call any of these routines would crash. How to use GetCRMPBxxFuncPointers: #if CarbonLib fn GetCRMPBxxFuncPointers #endif err = fn PBStatusImmed( @paramBlock ) err = fn PBControlSync( @paramBlock ) err = fn PBOpenSync( @paramBlock ) Robert P.