Hi everybody,
I'm trying to modify the phone number of hotsync modem settings.
I know that it stored in the Unsaved Preferences database, system database..
I'm trying to access it to open the specify record and then modify it.. I'm
using the same methods that I used for my own database in my application but
I
still get a Fatal Exception message. Now is that database specialy protected
or I'm
doing something wrong. To open the database sounds ok but when I'm trying
the
MemHandleLock() method I got the fatal exception.
Here some of my code :
LocalID dbID;
DmSearchStateType searchInfo ;
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 ;
I don't know if there is another way to change the phone number settings for
Hotsync modem but I guess it's the only one, any clue will be appreciate..
Thanks..
Fabrice
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/