At 03:12 AM 12/1/2005, you wrote:
I can't find the code (below) anywhere in my CW 9.3 source. Nor can I
find a definition of SysGetAppInfo(). How exactly does one go about using
this code snippet below?
#if SUPPORT_A4_CONST_GLOBALS && SUPPORT_JUMPTABLES_IN_A4
void _CW_LoadOtherSegments(Boolean loading)
{
SysAppInfoType *appInfoP, *rootAppInfoP;
appInfoP = SysGetAppInfo(&rootAppInfoP, &appInfoP);
if (appInfoP->launchFlags & (sysAppLaunchFlagSubCall |
sysAppLaunchFlagNewGlobals))
{
// other segments are handled by normal paths
}
else
{
_CW_Features *features = __GetCWFeatures();
__LoadAndRelocate__(loading, appInfoP->codeH);
}
}
#endif
SysGetAppInfo is prototyped in the CW runtime library in the CWPalmOS.h
that's included by the runtime files. That API is a system-use only
function that is used by the startup code. This snippet of code is added
to the end of the PalmOS_Startup.cpp file, just before the
} // namespace MTWK
line. You should already have a prototype for
void _CW_LoadOtherSegments(Boolean loading);
in your CWCallbackThunks.h file that's used when you write expanded mode
applications.
-- Ben Combee, Senior Software Engineer, Palm, Inc.
"Combee on Palm OS" weblog: http://palmos.combee.net/
Developer Forum Archives: http://news.palmos.com/read/all_forums/
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/