Default Browser (Desktop)

Discussion in 'Questions (Windows Mobile)' started by bish0p, Sep 10, 2008.

  1. bish0p

    bish0p Member Licensed User

    Over the last few weeks I have been putting together an Geocaching application in B4PPC and it works fabulously (thanks to many peoples help and additional libraries). It addresses many of the issues power cachers have been fighting for years now.

    It works great on the PPC, however I have had a request to compile it for the Desktop, which for 98% of it would not be an issue, however there is a section that I use dzt's HTMLview library to display some information. To get around it I would like to just feed a created .html file to the default browser.

    The main question I have is how to determine what the default browser is?

    Thanks
     
  2. Cableguy

    Cableguy Expert Licensed User

    You do not need to know what the default browser is, in order to show a webpage.
    You can simply shell the html file, or embed a webBrowser object into your app...
    If you shoose to shell an html page, the default browser, whtever it is, will be call upon to open the file....
     
  3. Mr_Gee

    Mr_Gee Active Member Licensed User

    Why wouldn't you use this?
    Code:
    Shell("\Windows\explorer.exe","<htmlfile location + name>")
     
  4. bish0p

    bish0p Member Licensed User

    You can but that does not use the Default Browser, it always uses IE... And there are many choices other than IE.
     
  5. Cableguy

    Cableguy Expert Licensed User

    Shelling ONLY the html file will open the default browser...
    Like this
    Shell("myfile.html")

    This should open the default browser, have you tryied it?
     
  6. Mr_Gee

    Mr_Gee Active Member Licensed User

    I know, but thats not what I meant
    nevermind

    running the file in the shell should also work
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice