-
Invoke IE
In the About Dialog of an application software, the website of related information is shown. I would like to invoke IE to display this page automatically if clicked.
If we know where IE or other default web browser is, we could easily use WinExec or other functions to invoke it. The problem is I don't know where it is. Any other way to invoke the default browser?
-
One way is to use Automation (start IE as an Automation server). A second way is to use ShellExecute() and just pass the URL - the shell will open it in the default browser. A third way is to open a dialog inside your application which uses the Browser ActiveX control to display the site.
-
If you use:
::ShellExecute(NULL,NULL,"your page.html",NULL,NULL,SW_SHOWNORMAL);
That will open your default browser with your page.