VB6 Determine the operating system

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kenaso
    New Member
    • Jan 2008
    • 2

    VB6 Determine the operating system

    I know this has been asked before and I visited the VBNet website and ran the code to determine the operating system. My problem is I am running Windows Vista Home Edition. This code reports I am running Windows 2000. It reports the major=5, minor=0, and the build=2195. Has anyone ever seen such a thing? Has a specific file on my system been corrupted or overlaid by an earlier version?

    Any assistance would be appreciated. Thank you.
  • Kenaso
    New Member
    • Jan 2008
    • 2

    #2
    UPDATE to my previous post.

    When I compile the afore mentioned code, I get the correct results. I have contacted Randy at VBNet with screen prints of both test results (IDE vs EXE). I am not sure what is being read in the IDE versus when the code is compiled. Any suggestions?

    Thank you.

    Comment

    • Killer42
      Recognized Expert Expert
      • Oct 2006
      • 8429

      #3
      Can you show us the code?

      Comment

      • daniel aristidou
        Contributor
        • Aug 2007
        • 494

        #4
        Did you make sure you are not using the program in compatibility mode....... that may be the source of your results

        Comment

        • Killer42
          Recognized Expert Expert
          • Oct 2006
          • 8429

          #5
          Originally posted by daniel aristidou
          Did you make sure you are not using the program in compatibility mode....... that may be the source of your results
          Excellent point. One of the main purposes of that mode is to tell the application that this is "really" an earlier operating system. So the app could hardly be blamed for believing it, if that is the case.

          Comment

          Working...