HI All
        i am creating a self extracting archiver
        I copy all records in a handle of 65 K and then attach this handle to a Prc
as a resource
        and then on the Palm device I extract these and create separate databases
from them

        UInt16 num = 0;
        UInt16 numRecs;
        LocalID lDBID;
        DmOpenRef pDB;
        dbErr = SysCurAppDatabase(&num,&lDBID);
        if(dbErr != 0)
        {
                return 0;
        }

        pDB = DmOpenDatabase(0,lDBID,dmModeReadWrite);
        if(pDB == 0)
        {
                return 0;
        }
        numRecs = DmNumResources(pDB);
        DmCloseDatabase(pDB);

        The value of the variable numRecs comes out to be 7 which was the number of
recs in the     PRC before archiving meaning it does not take into account the
resources which have been       added to it. if instead i call this chunk of code
from some other application instead of  the currently running application
the correct value is returned
        can anyone shed some light on this
        Regards
        Kunal


-- 
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