At 11:55 AM 7/13/2005, you wrote:
This is probably a stupid question but ... in the armlet example code from MW/CW 9.3 there are two targets. One creates an ARM binary that is linked into a .bin file. The second target creates a 68K binary that links the first target's .bin file into resource area of the 68k image.

In C code in the second target, that resource is referenced ala:

MemHandle mh = DmGetResource('ARMC', 1);

My question is how does this work? I mimic'd the same thing, and it does not find the resource. Oh, I should mention that my app is a palm os shared library.

The Palm OS 68K linker will pull in .bin and .sbin files in the target and link them as resources based on their filenames. If you don't see this working, go to the File Mappings pref panel for the target and hit factory settings and make sure you're using the Palm OS 68K Linker, not the Mac OS 68K Linker.


-- Ben Combee, Senior Software Engineer, palmOne, 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/

Reply via email to