By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 959 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

VB6 Determine the operating system

P: 2
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.
Jan 17 '08 #1
Share this Question
Share on Google+
4 Replies


P: 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.
Jan 17 '08 #2

Expert 5K+
P: 8,434
Can you show us the code?
Jan 18 '08 #3

daniel aristidou
100+
P: 491
Did you make sure you are not using the program in compatibility mode....... that may be the source of your results
Jan 21 '08 #4

Expert 5K+
P: 8,434
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.
Jan 21 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.