Hi,

  Can Someone tell me how to use INetURLOpen. I am writing an application 
that helps access out server and i could launch the clipper and go to the 
URL using ROM palmos35-en-ez-8mb-wc-dbg.rom but when i use the color rom 
Palm OS3.5-en-color.rom i guess it does not launch clipper and my code looks 
like. So may be i need to use the INetLibURLOpen. Iam not sure and  also not 
sure how to use it. Any help is appreciated.


case MainSubmitButton:
                  err = GoToURL("http://xxxxx";);
                          handled = true;
                          break;

#ifndef sysAppLaunchCmdGoToURL
#define sysAppLaunchCmdGoToURL 54
#endif
#ifndef sysFileCClipper
#define sysFileCClipper 'clpr'     // Creator type for clipper app.
#endif

Err GoToURL(Char* origurl)
{
     Err err;
     Char* url;
     DmSearchStateType   searchState;
     UInt16      cardNo;
     LocalID   dbID;

     // make a copy of the URL, since the OS will free the parameter once 
clipper quits
     url = MemPtrNew(StrLen(origurl));
     if (!url) return sysErrNoFreeRAM;
     StrCopy(url,origurl);
     MemPtrSetOwner(url, 0);

     // find clipper and launch it
     err = DmGetNextDatabaseByTypeCreator (true, &searchState,
     sysFileTApplication, sysFileCClipper, true, &cardNo, &dbID);
     /*if (err) {
          FrmAlert(NoClipperAlert);
          MemPtrFree(url);
     }
     else*/
          err = SysUIAppSwitch(cardNo, dbID, sysAppLaunchCmdGoToURL, url);

     return err;
}

Thanks
Raj
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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

Reply via email to