V. Sriram wrote:
hi,
i wanted to use PhnLibGetOwnNumbers(..) to get the phone numbers. so i included #include 
<HsPhoneNetwork.h>/**< CATEGORY:  NETWORK */
But the compiler throws errors:

/PalmDev/sdk-5r4/include/Libraries/Telephony/HsPhoneNetwork.h:48: parse error 
before `PhnMsgBoxDataType'

/PalmDev/sdk-5r4/include/Libraries/Telephony/HsPhoneNetwork.h:59: parse error 
before `PhnMsgBoxDataType'

and many more such errors...
then i pasted only extern Err PhnLibGetOwnNumbers (UInt16 refNum, PhnAddressList* ) from HsPhoneNetwork.h...this time there were no compiler errors but PhnLibGetOwnNumbers(..) returns a non-zero value...

can anyone please tell me what could be the problem. iam providing only that part of the code here (i've deliberately removed the exception handling part for want of space):

if(PhnLibModulePowered(smsLibRef) == phnPowerOff)
{       
PhnLibSetModulePower(smsLibRef, true); }
err=HsGetPhoneLibrary(&smsLibRef);
(i have tested this code on Treo 700p simulator...)
thanks...awaiting some response
sriram



include <68k/hs.h>

This includes all the Treo specific API's (including HsPhoneNetwork.h)

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to