your database is not open. find it. open it. then get resource.
On 7/17/06, Jin <[EMAIL PROTECTED]> wrote:
Im currently making shared library with ARM.
The problem is DmGetResouce just keep returning the NULL
The DmGetLastErr said "Couldnt find resource" (error code 210)
ARMStruct *armStruct = MemPtrNew(sizeof(ARMStruct));
FtrGet(sysFtrCreator, sysFtrNumProcessorID, &processor);
if (sysFtrNumProcessorIsARM(processor))
{
mh = DmGetResource('ARMC', 1);
if(mh==NULL){
SysFatalAlert(StrIToH(buffer,(long)DmGetLastErr()));
}else SysFatalAlert("Not Null input");
pnoPtr = MemHandleLock(mh);
PnoLoad(&pno, pnoPtr);
//user Data
armStruct->functionNumber = 2;
armStruct->refNum = refNum;
armStruct->ccP = clientContextP;
err = PnoCall(&pno, armStruct);
I couldnt find the problme in the code. Im using CW9.3 and
the bin filename is "ARMC0001.bin". I also check the out prc file
by PRCExplorer. It contains ARMC resource.
Does anyone have suggustions for this problem?
I will really appreciate your comments or sugguestion. Thanks
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
--
Best Regards, Dmitry Grinberg
Software Engineer, http://PalmPowerups.com
(847) 226 9295
AIM: DmitryGrinberg
MSN: [EMAIL PROTECTED]
ICQ: 165589894
Y! IM: dmitrygr2003
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/