>
>Post the code that creates the database records.
>

Err AddModule(Char *Mod)
{
    MemHandle h;
        void *ptr;

        Err err = OpenDB();
        if (err)
                        return err;
        else
        {
                Int16 Index = dmMaxRecordIndex; //Get the max record

                int size = StrLen(Mod);

                h = DmNewRecord(dbPtr,&Index,sizeof(size + 1));

                if(!h)
                        return 1;
                else
                {
                   ptr = MemHandleLock(h);
                   DmWrite(ptr, 0 ,(const void *)&Mod , sizeof   (size      + 1) );

                   DmReleaseRecord(dbPtr,Index,true);
                   MemHandleUnlock(h);
                }
          }
return 0;
}

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


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

Reply via email to