Article ID: 136997
Article Last Modified on 7/30/2001
#include <macos\QuickDra.h>
add this line:
#include <macos\Resource.h>
extern ProcPtr _PvApplyFixup(Handle);
DoAbout ()
{
// SetParamText (aboutStr);
// (void) Alert (aboutAlrt, nil);
// return 0;
Handle hResource;
ProcPtr pCode;
hResource = GetResource('INIT',1); // load the resource
if (hResource != NULL) // make sure it's loaded
{
HLock(hResource); // lock down the handle
pCode = _PvApplyFixup(hResource); // get pointer to function
pCode(); // call the code resource
HUnlock(hResource);
}
return 0;
}
Additional query words: kbinf 2.00
Keywords: KB136997