I'm studying jpegArmlets. The sample work properly. However, I want to add
the capabilities to my application, It seemed I can't add the armlet source.

There is a file called "armlet.r", with the 2 lines content as below:

read 'ARMC' (9000) "ARMC0001.bin";
read 'ARMC' (9001) "ARMC0002.bin";

The two files "ARMC001.bin" and "ARMC002.bin" are under same directory as
"armlet.r".

In the main program, the call to the armlet is like this:

    mh = DmGetResource('ARMC', 9000);
    if(mh==NULL) {
     FrmCustomAlert( JpegError, "Call ARMC Failure!", NULL, NULL );
    }
    else {
     *armlet = (NativeFuncType *)MemHandleLock(mh);
     result = PceNativeCall(armlet, myUserData);
     MemHandleUnlock(mh);
     DmReleaseResource(mh);
    }

Obviously, the armlet code is taken as resource in this case.
After compiling and installing into my palm, "Call ARMC failure" appears.
And I checked the prc file with PalmInsider and find there are no the ARMC
resource within the prc file.

However, I check the sample file bundled with JpegArmlets with PalmInsider
on Palm and find there are "ARMC 9000" and "ARMC 9001". So it showed that
the two resources couldn't be correctly linked up to my prc.

Any advice and comments. Please give me a hand.



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to