I am writing a shared library using CW 9.3 and that will have a PNOlet linked
for efficiency. However, the following DmGetResource call returns NULL:
PnoDescriptor pno;
MemHandle mh = DmGetResource('ARMC', 1);
MemPtr pnoPtr;
if (mh == 0)
FrmCustomAlert(1200, "ARMC not found!", 0, 0);
else
pnoPtr = MemHandleLock(mh);
PnoLoad(&pno, pnoPtr);
rc = PnoCall(&pno, 0);
PnoUnload(&pno);
MemHandleUnlock(mh);
DmReleaseResource(mh);
I am compiling the PNOlet target first to produce ARMC0001.bin, and then
compiling the 68k shared library and linking ARMC0001.bin to it.
1) Are PNOlets not allowed on shared libraries?
2) Are globals allowed in a PNOlet linked to a shared library?
3) Is there a limit on how big the PNOlet can be in a shared library?
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/