On Sun, 23 Apr 2000, Derek Kite wrote:
> How does one go about getting and setting the database version?
> I am getting this far, and getting a bus error when DmDatabaseInfo is called.
> 
> JobAppInfo *pAppInfo = NULL;
> UInt *version;
> 
> if ( DmOpenDatabaseInfo (pDB,&dbID, NULL, NULL, &cardno, NULL ))
> {   return dmErrInvalidParam; }
> if ( DmDatabaseInfo ( cardno, dbID,
>                       NULL,
>                       NULL,
>                       version,
>                       NULL,
>                       NULL,
>                       NULL,
>                       NULL,
>                       &appInfoID,
>                       NULL,
>                       NULL,
>                       NULL ))
>       {       return dmErrInvalidParam;       }
> 
> If I have NULL in place of version, all is well. I have tried a &version where
> version is a UInt, and still no go.
> 
> Is it a pointer, a localID, or what?
> 
> Derek

try:
        UInt    version = 1;

        DmSetDatabaseInfo(... &version ... );

you need a real value in "version", not a pointer.

-- 
Brian Mathis
Direct Edge
http://www.directedge.com


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

Reply via email to