i'm trying to launch the phone app and dial a number on Treo600.
what is the with this code. it crashes.
Err launch_phone_app(char *number, char *name)
{
DmSearchStateType searchState;
UInt16 cardNo;
LocalID dbID;
PhoneAppLaunchCmdDialType *param =
MemPtrNew(sizeof(PhoneAppLaunchCmdDialType));
if (!param)
return 1;
if (!DmGetNextDatabaseByTypeCreator(true, &searchState,
sysFileTApplication, hsFileCPhone, false, &cardNo, &dbID))
{
param->version = 1;
param->confirm = false;
param->failLaunchCreator = hsFileCPhone;
param->dialMethod = PhoneAppDialMethodNormal;
param->number = number;
param->name = NULL;
param->failLaunchCode = sysAppLaunchCmdNormalLaunch;
param->extraDigits = NULL;
SysUIAppSwitch(cardNo, dbID, phoneAppLaunchCmdDial, param);
}
return errNone;
}
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/