After studying of the documents files included in CW9.3, I can now include the two binary files.
After changing their file name to "ARMC2328.bin" and "ARMC2329.bin", as stated in document that the 4 numbers represents the resource ID: 0x2328 = 9000 0x2329 = 9001 Then the two files were included to the project directly. After compiling and installing into my Palm, the resources are there and the program works properly. But I still don't know why using armlet.r cannot work? "DongDong" <[EMAIL PROTECTED]> �b�l�� news:[EMAIL PROTECTED] �����g ... > 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/
