If I recall correctly, your "bunch of strings"
will count as globals, unless you set the "PC-Relative
Strings" option. In CW this can be found in the
68K processor settings panel of the project settings
dialog. I do not know the equivilant setting for
the GCC environment.
--
-Richard M. Hartman
[EMAIL PROTECTED]
186,000 mi./sec ... not just a good idea, it's the LAW!
> -----Original Message-----
> From: Jeff Valore [mailto:[EMAIL PROTECTED]]
>
> Here is the basic outline of the code:
>
> DWord PilotMain( Word launchCode, Ptr cmdPBP, Word launchFlags)
> {
> if(launchCode == Normal or SysReset)
> {
> char *dbNames[] = {/*bunch of strings*/};
> LocalID DbLocalID;
> VoidHand dbImageHandle;
> int currDB;
> void *DBImgPtr;
>
> // these functions are called in this order
> // (code inbetween calls is left out...
> // most is variable assignments + if statements)
> DmFindDatabase();
> DmGetResource();
> DmGetResource();
> DmCreateDatabaseFromImage();
> MemHandleUnlock();
> DmReleaseResource();
> }
> }
>