Hi everybody,
I'm trying to find a way to modify the phone number of hotsync modem..
I know these information are stored on the Unsaved Preferences database
but for me it's impossible to access it, when I try to open and then to get
the pointer and to lock it with MemHandleLock() I still get an fatal
exception..
Well I just wonder if there is another way to modify this settings ??
Help will be appreciated..
Here some of my code :
Here some of my code :
LocalID dbID;
CharPtr pRecord ;
dbID = DmFindDatabase(0, "Unsaved Preferences") ;
ConfigurationDB = DmOpenDatabase(0, dbID, dmModeReadWrite) ;
if(!ConfigurationDB)
return DmGetLastErr() ;
hRecordNumTel = DmQueryRecord(ConfigurationDB, 0) ;
pRecord = MemHandleLock(hRecordNumTel) ; // GOT THE FATAL EXCEPTION HERE
>From here I got the error..
MemHandleUnlock(hRecordNumTel) ;
err = DmWrite(pRecord, 0, "0274582208", StrLen("0274582208")) ;
if(err)
return err ;
If I use the same code with and open one of my database application I get
no error.. then something must be different with this Unsaved Preferences
database..?????
Thanks
Fabrice
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/