Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to Launch the default browser from my MFC app ???

0 views
Skip to first unread message

Francois Liaudat

unread,
Apr 16, 1997, 3:00:00 AM4/16/97
to

I need to launch the default browser with a specific URL when the user
choose a menu item or click on a toolbar.

How do I implement:

OnLaunchBrowser()
{
// ???
}

Chris Jackson

unread,
Apr 17, 1997, 3:00:00 AM4/17/97
to

Francois Liaudat <Fran...@ThreeDGraphics.com> wrote in article
<335586...@ThreeDGraphics.com>...

Check out the Help for ShellExecute()

I Would suggest something like:

OnLaunchBrowser()
{
ShellExecute( GetSafeHwnd(), "open", "htmlfile.html", NULL, "", 0 );
}

Chris

--
Chris Jackson : chr...@eurodltd.co.uk , ch...@redlands.demon.co.uk
My Opinions, not my Companys' - so there!

0 new messages