Here is the code below ....  What obvious point am I missing?

static Err MyReadDBProc(void *bufBaseP, UInt32 *fileSize2,
 Char *userDataP)
{
        Err err = errNone;
        FileHand *pFile;
        //FileRef fref = NULL;
        Int32 curpos = 0;
        Int32 numObj = 1;
        
        StrCat(userDataP, "_.pdb");

        pFile = FileOpen(0, userDataP, sysFileTFileStream,
         NULL, fileModeReadWrite, &err);
        if (err == errNone) {
                err = FileSeek(pFile, curpos, fileOriginBeginning);
                if (err == errNone) {
                        FileRead(pFile, (void *)bufBaseP, numObj, 
(Int32)fileSize2, &err);
                }
        }
        return err;
}

main()
{
   /* stuff deleted */
   err = ExgDBRead(MyReadDBProc, MyDelDBProc, attArray[i], idP,
   cardNo, needReset, keepDates);
   /* ..... */
}
-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/

Reply via email to