The strategy is to locate the memo pad's database, check the version number,
open it, write to it, and close it.  Here's a summary of steps, but you'll
need to add error checking and so forth.

1) Locate memo pad database:

 DmGetNextDatabaseByTypeCreator (true, &searchState, 'DATA',
        sysFileCMemo, true, &cardNo, &memoDBID);

2) Get and check the version number:

 DmDatabaseInfo (cardNo, memoDBID, NULL, NULL, &MemoPadDBVer, NULL,
      NULL, NULL,
      NULL, NULL,
      NULL, NULL,
      &creatorID);

3) Open the database with DmOpenDatabase()

4) Create a new memo record and lock it down using DmNewRecord() and
MemHandleLock();

5) Write to the new record using DmWrite();

6) Unlock the record using MemHandleUnlock()

7) Close the database with DmCloseDatabase ();

Regards,
Michael Yam



Stephen Bentley <[EMAIL PROTECTED]> wrote in message
news:878@palm-dev-forum...
>
> What does it require to write a new memo to the Palm's
> memo pad application?
>
> Steve
>
>
>
>
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to