Opening browser from Windows app - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Opening browser from Windows app

I am writing a windows application in C using the visual c 6.0 IDE. I want to open a browser that displays local html help files. Is there a way to do it via C?

Comments

  • pingpongpingpong Posts: 937Member
    Check out the ShellExecute API. deja.com for examples.

    : I am writing a windows application in C using the visual c 6.0 IDE. I want to open a browser that displays local html help files. Is there a way to do it via C?
    :

  • robgodfreyrobgodfrey Posts: 4Member
    Thanks - I did this and it worked!

    Result = (int) ShellExecute(hWnd, "open", "f:\avgatester\vgahelp\index.html", NULL, NULL, SW_SHOWNORMAL);

    Opening up the specified file in a browser.

    Brilliant!!!

    : Check out the ShellExecute API. deja.com for examples.
    :
    : : I am writing a windows application in C using the visual c 6.0 IDE. I want to open a browser that displays local html help files. Is there a way to do it via C?
    : :
    :
    :

Sign In or Register to comment.