I use this code. It tries Clipper first then Web Pro. I can't get it to work with WAP for some reason. Must be the Launch code or something.
// Find clipper and launch it, else find Web Pro // The ID for Wap is 'WppO', but I can't get the launch code to work. Err err; char *url; DmSearchStateType searchState; UInt16 cardNo; LocalID dbID; url = MemPtrNew(500); StrPrintF(url, "http://wireless.mapquest.com/Palm/v3.0/mqtripplus.exe?OPC=null&ADDR_ORIGIN= %s&CITY_ORIGIN=%s&STATE_ORIGIN=%s&ZO=%s&DPC=null&ADDR_DESTINATION=%s&ZD=%s&s ubmit1=Get+Directions", strAdd, strCity, strState, strZip, dstAdd, destZip); // So the ptr does not get destroyed when exiting app MemPtrSetOwner(url, 0); err = DmGetNextDatabaseByTypeCreator (true, &searchState, sysFileTApplication, sysFileCClipper, true, &cardNo, &dbID); if (err) { // Clipper is not present // Try to find Web Pro err = DmGetNextDatabaseByTypeCreator (true, &searchState, sysFileTApplication, 'NOVR', true, &cardNo, &dbID); if (err) { // Web Pro is not present FrmCustomAlert(ErrorAlert, "MapQuest not available.","",""); MemPtrFree(url); } } if (!err) err = SysUIAppSwitch(cardNo, dbID, sysAppLaunchCmdGoToURL, url); -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
