(crossposted to codewarrior.palm) I have a PRC, MainApp, that I want to be able to install another PRC, HelperApp.
After much research online, I gather this is what I want to do, but I still need some help with the specifics. 1) Build HelperApp 2) Include HelperApp as a resource inside of MainApp 3a) In MainApp, lock down the handle returned from DmGet1Resource( ...HelperApp ... ) 3b) Pass this pointer to DmCreateDatabaseFromImage 3c) Unlock & release HelperApp's handle & resource 4) Now the device should have both MainApp and HelperApp as independent PRCs! Here is where I need help. I am using CodeWarrior 7.1 for Windows. a) HelperApp builds and works fine as a stand-alone PRC. What (if anything?) do I need to do in CW71 to prepare it for inclusion as a resource in MainApp? In HelperApp, I tried Setting its Target:68k Target:Project Type to "PalmOS Code Resource." This results in a linker error: Link Error : __RuntimeModule__: '__segtable__' has illegal single segment 32-bit reference to '__DummyStartup__' After much research, Palm's old PlugIn demo uses a something like "#define PlugInMain __Startup__" to fix this, but this doesn't work in my case. I am not sure what values, if any, I should specify for the other fields "Sym Name, Resource Name, Entry Point, Res Type, ResID." b) What do I need to change to MainApp's project settings to link in this HelperApp resource to the final PRC? I tried playing with the "Linker : PalmRez Post Linker : Mac Resource Files" field, but it apparently really means FILE, not FILES... if I put two items in this field, I get a "can't find FILE c:\...\item1 item2". For anyone else who is following in my footsteps, please take a look at: http://www.palmoswerks.com/stories/storyReader$46 -- close, but no cigar... MPW or Mac-specific? http://oasis.palm.com/dev/kb/samples/1157.cfm -- Palm's old PlugIn demo... not quite the same thing, though Thanks for your help! -Jeff Ishaq -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
