Click to See Complete Forum and Search --> : How to launch Web browser


vasu
April 29th, 1999, 12:33 AM
I want to launch the Web browser and go to a pre-determined web site when I click a menu item from my VC++ 6.0 Application.

Thanks in advance,
Vasu

Roger Osborn
April 29th, 1999, 02:01 AM
You can use shellexecute:

HINSTANCE h = ShellExecute(NULL, "open", "http://whatever", NULL, NULL, SW_SHOWNORMAL);
if ((UINT)h > 32)
{
// it worked...



Cheers,
Roger