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. Visual Basic
  4. vb6 how to identify windows 8.1

vb6 how to identify windows 8.1

Scheduled Pinned Locked Moved Visual Basic
csharpc++tutorialquestion
7 Posts 4 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.
  • M Offline
    M Offline
    MikeD 2
    wrote on last edited by
    #1

    Now that GetVersionEx is deprecated (starting windows 8.1) and will only ever tell me that my program is running on windows 6.2 build 9200 has anyone found a way to work out when I am on windows 8.1 from within VB6? converting to .net is not an option (certainly not a quick or easy one) and the only examples I have been able to find are all c++ I thought I would ask before I sink to the level of trying to scrape the output from a cmd window

    M T 2 Replies Last reply
    0
    • M MikeD 2

      Now that GetVersionEx is deprecated (starting windows 8.1) and will only ever tell me that my program is running on windows 6.2 build 9200 has anyone found a way to work out when I am on windows 8.1 from within VB6? converting to .net is not an option (certainly not a quick or easy one) and the only examples I have been able to find are all c++ I thought I would ask before I sink to the level of trying to scrape the output from a cmd window

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      Good luck with that. I was going to post something disparaging organisations that are still using VB6 code but I guess you already know that!

      Never underestimate the power of human stupidity RAH

      M 1 Reply Last reply
      0
      • M Mycroft Holmes

        Good luck with that. I was going to post something disparaging organisations that are still using VB6 code but I guess you already know that!

        Never underestimate the power of human stupidity RAH

        M Offline
        M Offline
        MikeD 2
        wrote on last edited by
        #3

        Thanks for your support, I shall wear it always (joking) hideous but, for anyone else caught in the same trap shell "cmd /c ver > fred.txt" and then read fred.txt I know crude, horrible but what would you expect from someone that programs in VB6 At least you will all feel totally righteous when Microsoft finally stops supporting the runtime and sit around saying "I told them but would they listen"

        M B 2 Replies Last reply
        0
        • M MikeD 2

          Thanks for your support, I shall wear it always (joking) hideous but, for anyone else caught in the same trap shell "cmd /c ver > fred.txt" and then read fred.txt I know crude, horrible but what would you expect from someone that programs in VB6 At least you will all feel totally righteous when Microsoft finally stops supporting the runtime and sit around saying "I told them but would they listen"

          M Offline
          M Offline
          Mycroft Holmes
          wrote on last edited by
          #4

          I'm currently working in Silverlight so have premonitions of the hassle you are going through. However we are already looking at moving to MVC which I personally don't like.

          Never underestimate the power of human stupidity RAH

          1 Reply Last reply
          0
          • M MikeD 2

            Now that GetVersionEx is deprecated (starting windows 8.1) and will only ever tell me that my program is running on windows 6.2 build 9200 has anyone found a way to work out when I am on windows 8.1 from within VB6? converting to .net is not an option (certainly not a quick or easy one) and the only examples I have been able to find are all c++ I thought I would ask before I sink to the level of trying to scrape the output from a cmd window

            T Offline
            T Offline
            TnTinMn
            wrote on last edited by
            #5

            Just a guess. But, how about reading the registry? HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentVersion HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentBuild

            M 1 Reply Last reply
            0
            • T TnTinMn

              Just a guess. But, how about reading the registry? HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentVersion HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentBuild

              M Offline
              M Offline
              MikeD 2
              wrote on last edited by
              #6

              lucky guess that :-D and maybe a tad more elegant Thank you

              1 Reply Last reply
              0
              • M MikeD 2

                Thanks for your support, I shall wear it always (joking) hideous but, for anyone else caught in the same trap shell "cmd /c ver > fred.txt" and then read fred.txt I know crude, horrible but what would you expect from someone that programs in VB6 At least you will all feel totally righteous when Microsoft finally stops supporting the runtime and sit around saying "I told them but would they listen"

                B Offline
                B Offline
                Bernhard Hiller
                wrote on last edited by
                #7

                Actually we should ask Microsoft to stop their "extended" support for old systems far earlier than they do now. That is perhaps the only basis on we can convince our bosses to stop our support for those old systems... (I am happy that we got rid of Windows 2000 last year!)

                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