Coder's Guild Mailing List

Re: Web Links in programs

Posted by Bernie Siegrist on 2001-05-13

ShellExecute(NULL,NULL,"http://www.acme.com/",NULL,NULL,SW_SHOWNORMAL)

This should fire up the default browser with the given URL.

Good luck! :-)


 >Date: Sat, 12 May 2001 12:21:20 -0500
 >From: "James Steele" <sfox@xxxxxxxxxx.xxxxxxxxxxx.xxx>
 >Subject: Web Links in programs

 >C++ with MFC
 >MSVC++ 6.0
 >
 >I have a push button on a dialog box that, when the user clicks it, I 
want it to open the
 >web browser and take the user to the program's homesite.  How do you tell 
the computer
 >to go to a website from pushing a button on a program?