On a certain event (say button click), I need to open the (default) web browser pointing to a desired url.
Any help?
Thanks, greetings
Check the description of the launch-handler (SYS:Documentation/handlers/launch-handler.doc):
EXAMPLE This example will demonstrate how to call the handler from within an application to asyncronously start a web browser on a link. BPTR scb = IDOS->Open("URL:http://www.domain.com",MODE_OLDFILE); if( scb ) /* Check return value and Close() immediately. */ { IDOS->Close(scb); IDOS->PutStr("Client started successfully.\n"); } else { IDOS->PutStr("Error: Unable to start client.\n"); }
It works, thanks
Check the description of the launch-handler (SYS:Documentation/handlers/launch-handler.doc):
It works, thanks