Jonathan Hays answered this question two days ago. I suggest you take
a look at the archives before asking questions in the future, as it'll
save you loads of time. :)
Brandon
Jonathan's reply included this snippet of source code which might be
helpful to you:
//Code to utilize a form from another application or resource DB...
MemHandle handle = DmGetResourceIndex(dbRefOfOtherApplication,recordId);
MemPtr ptr = MemHandleLock(handle);
UInt16 index = 0xFFFF;
MemHandle formHandle = DmNewResource(dbRefOfCurrentApplication,
'tFRM', index, MemPtrSize(ptr));
MemPtr dest = MemHandleLock(formHandle);
DmWrite(dest, 0, ptr, MemPtrSize(ptr));
MemHandleUnlock(formHandle);
MemHandleUnlock(handle);
DmReleaseResource(handle);
FormPtr form = FrmInitForm(index);
//Use the form, blah, blah, blah...
//Use this when you're done with it...
FrmDeleteForm(form);
DmRemoveResource(dbRefOfCurrentApplication, index);
On Sat, 12 Feb 2005 21:32:34 +0200, Mert SaÄlam <[EMAIL PROTECTED]> wrote:
> Is it possible to access other programs resource dbs?
> If it is, how can I initiate a form with it?
>
> Thanks
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe, please
> see http://www.palmos.com/dev/support/forums/
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/