Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to detect the browser version?

How to detect the browser version?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestionannouncement
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Cyrus Dang
    wrote on last edited by
    #1

    Dear all, How to detect what kind of browser is running and its version? For example, Netscape or IE; IE 5.0 or IE 6.0, ect. Best regards,

    D 1 Reply Last reply
    0
    • C Cyrus Dang

      Dear all, How to detect what kind of browser is running and its version? For example, Netscape or IE; IE 5.0 or IE 6.0, ect. Best regards,

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Your question cannot be answered in its current form (as more than one browser can be installed at any given time). If you want to know the default browser, simply use FindExecutable().


      "Ideas are a dime a dozen. People who put them into action are priceless." - Unknown

      C 1 Reply Last reply
      0
      • D David Crow

        Your question cannot be answered in its current form (as more than one browser can be installed at any given time). If you want to know the default browser, simply use FindExecutable().


        "Ideas are a dime a dozen. People who put them into action are priceless." - Unknown

        C Offline
        C Offline
        Cyrus Dang
        wrote on last edited by
        #3

        So, can we detect IE version? BRs,

        P D 2 Replies Last reply
        0
        • C Cyrus Dang

          So, can we detect IE version? BRs,

          P Offline
          P Offline
          Priyank Bolia
          wrote on last edited by
          #4

          HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Version I hope this will work. http://www.priyank.in/

          1 Reply Last reply
          0
          • C Cyrus Dang

            So, can we detect IE version? BRs,

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            Yes, just use GetFileVersionInfo() and VerQueryValue().


            "Ideas are a dime a dozen. People who put them into action are priceless." - Unknown

            C 1 Reply Last reply
            0
            • D David Crow

              Yes, just use GetFileVersionInfo() and VerQueryValue().


              "Ideas are a dime a dozen. People who put them into action are priceless." - Unknown

              C Offline
              C Offline
              Cyrus Dang
              wrote on last edited by
              #6

              Thanks all,

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups