I've got 2 shared libraries that I want to include as 'Custom Data' (in
Constructor lingo) so I can use the following code to load them:
Err OpenOVUtilsLib(UInt16 *ovUtilsLibRef)
{
Err err; MemHandle rsc;
SysLibEntryProcPtr libP;
err = OVUtilsLib_OpenLibrary(ovUtilsLibRef);
if(err)
{
rsc = DmGetResource('libr', OVUtilsLibResourceNumber);
err = DmGetLastErr();
if(!err) {
libP = MemHandleLock(rsc);
err = DmGetLastErr();
if(!err) {
err = SysLibInstall(libP, ovUtilsLibRef);
OVUtilsLib_OpenLibrary(ovUtilsLibRef);
MemHandleUnlock(rsc);
}
DmReleaseResource(rsc);
}
}
return err;
}
Unfortunately, for them to be included as 'Custom Data' they need to be bin
files. Right now I only know how to generate them in Codewarrior as PRC files.
How do I build them as .bin files or convert them to .bin files using
Codewarrior 9.3?
(An aside - to do it in PODs you
1. File->Import
2. 'Palm OS Resource File'
3. Specify the name+path to the prc library file
4. Select all the check boxes in the options section
5. Save resource data as external files
6. You then have a bin file that you can massage into your xrd resource file by
adding a resource of type 'libr' - Edit->New Resource. Deselect 'Show only
common resource types' and select type 'libr'. Then specify the path.
)
thanks!
Michael
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/