CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Location
    Silicon Valley, California
    Posts
    33

    How to launch Web browser

    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


  2. #2
    Join Date
    Apr 1999
    Posts
    48

    Re: How to launch Web browser

    You can use shellexecute:

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



    Cheers,
    Roger




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