Hi Bismi,
Yes I opened the library before calling the register function
err = HsGetPhoneLibrary (&PhoneLibRefNum);
if(err)
return err;
HsAttrGet (hsAttrPhoneType, 0, &phnType);
if (phnType == hsAttrPhoneTypeCDMA)
{
phoneLibraryName = phnLibCDMAName;
phoneLibraryDbCreator = phnLibCDMADbCreator;
}
else // default is GSM
{
phoneLibraryName = phnLibGSMName;
phoneLibraryDbCreator = phnLibGSMDbCreator;
}
err = PhnLibOpen (PhoneLibRefNum);
..........
.........
........
err = PhnLibRegister(PhoneLibRefNum, appFileCreator, phnServiceAll);
.....
.....
.....
err = PhnLibClose(PhoneLibRefNum); //call this api to avoid
soft reset.
err = SysLibRemove(PhoneLibRefNum);
if(err == 0)
PhoneLibRefNum = 0;
return err;
Sumesh NR
Bismi wrote:
have you open the phone library
PhnLibOpen (UInt16 refNum)
You are getting the eror as the library is not initialized in your application
Regards
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/