Shoutbox

Testing OS in Application Created Using Visual Basic 6 - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: Testing OS in Application Created Using Visual Basic 6 (/showthread.php?tid=27681)

Testing OS in Application Created Using Visual Basic 6 by Salem on 06-25-2004 at 08:49 AM

Hi

Can any1 out there help me? I'm am programming in Visual Basic 6 Pro. I would like the program im writing to check what version of Windows the user is running, and then depending on the OS, launch a certain part of the program. Will anyone be able to give me an idea (or a coding example, or whatever) on how to do this (if it is possible). It will be really appreciated.

Thanx in Advance
RileyM


RE: Testing OS in Application Created Using Visual Basic 6 by Choli on 06-25-2004 at 09:41 AM

Check Mnjul's reply to Visual Basics : Uptime. In that post, Mnjul attached a program in VB. In that program there's a function that determines the exact version of Windows.


RE: Testing OS in Application Created Using Visual Basic 6 by Salem on 06-25-2004 at 01:17 PM

Thanx a lot for that. Ill download the file and check it out on my PC with VB6 when i get home.

RileyM


RE: RE: Testing OS in Application Created Using Visual Basic 6 by Salem on 06-25-2004 at 03:42 PM

quote:
Originally posted by Choli
Check Mnjul's reply to Visual Basics : Uptime. In that post, Mnjul attached a program in VB. In that program there's a function that determines the exact version of Windows.


Thanx i checked out this VB project but can't get my own program to check the version of Windows im running.#

RileyM
RE: Testing OS in Application Created Using Visual Basic 6 by Mnjul on 06-25-2004 at 04:34 PM

Did you declare the API functions like I did in my project? :) Well, the part of my codes you need is ExactWinVer in General.bas. And you need to know how to use GetVersionEx. Locate MSDN Library and search for more information ;)


RE: Testing OS in Application Created Using Visual Basic 6 by Mike on 06-25-2004 at 04:58 PM

http://www.mentalis.org/apilist/GetVersionEx.shtml

Or even better: http://www.vbforums.com/showthread.php?s=&threadid=293511