Hi Cheng & Ben,
Thanks a lot for your reply. I have included that phone header file in
my project and using the PhnLibCardInfo() function. But it doesn't
return anything.
Following is how I am using this function,
UInt16 refNum;
CharPtr* manufacturer;
CharPtr* model;
CharPtr* version;
CharPtr* serial;
Boolean ans = false;
ans = PhnLibCardInfo (refNum,manufacturer,model,version,serial);
// ans returns "true" but none of the parameter holds value so
// it never enters the if condition and always executes the else part
if(ans && StrCompare(*model,"")!=0)
{
FrmCustomAlert(ErrorAlert,*manufacturer, NULL, NULL);
FrmCustomAlert(ErrorAlert,*model, NULL, NULL);
FrmCustomAlert(ErrorAlert,*version, NULL, NULL);
FrmCustomAlert(ErrorAlert,*serial, NULL, NULL);
}
else
{
FrmCustomAlert(ErrorAlert,"No Value", NULL, NULL);
}
Can you please guide me if I am making mistake somewhere?
Thanks,
Keyur.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/