CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Invoke IE

  1. #1
    Join Date
    Aug 2003
    Location
    Indian
    Posts
    58

    Question 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?

  2. #2
    Join Date
    Sep 2002
    Location
    14° 39'19.65"N / 121° 1'44.34"E
    Posts
    9,815
    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.

  3. #3
    Join Date
    May 2001
    Location
    Madrid-Spain
    Posts
    1,123
    If you use:

    ::ShellExecute(NULL,NULL,"your page.html",NULL,NULL,SW_SHOWNORMAL);

    That will open your default browser with your page.
    I am Miss Maiden... Miss Iron Maiden :-D

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured