Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - XTOSVersionInfo
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

XTOSVersionInfo

 Post Reply Post Reply
Author
Message
Kenneth View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 May 2004
Location: United States
Status: Offline
Points: 256
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kenneth Quote  Post ReplyReply Direct Link To This Post Topic: XTOSVersionInfo
    Posted: 09 December 2013 at 6:09pm
In previous versions the following was valid:

int Minor = XTOSVersionInfo()->dwMinorVersion;

In the current version, I get an error stating dwMinorVersion is not valid.  What is the correct
way to get the dwMinorVersion in the current API?Cry
Back to Top
kstowell View Drop Down
Admin Group
Admin Group


Joined: 25 January 2003
Location: MIchigan, USA
Status: Offline
Points: 496
Post Options Post Options   Thanks (0) Thanks(0)   Quote kstowell Quote  Post ReplyReply Direct Link To This Post Posted: 10 December 2013 at 12:46am
We had to make some changes for compatibility with the latest version of Visual Studio 2013.  If you need to get the OS minor version number you can use the system API GetVersionEx however be aware that Microsoft may not support this in the future.

// Initialize the OSVERSIONINFOEX structure.
OSVERSIONINFO osvi;
::ZeroMemory(&osvi, sizeof(OSVERSIONINFO));
osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);

// get the Windows OS version information.
::GetVersionEx(&osvi);

int Minor = osvi.dwMinorVersion;

Hope this helps.
Kirk Stowell, President and CEO
CODEJOCK SOFTWARE SOLUTIONS<
Back to Top
Willowmaster View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 July 2010
Location: Netherlands
Status: Offline
Points: 180
Post Options Post Options   Thanks (0) Thanks(0)   Quote Willowmaster Quote  Post ReplyReply Direct Link To This Post Posted: 10 December 2013 at 5:16am
Product: Xtreme SuitePro (ActiveX) version 15.3.1

Platform: Windows XP (32bit) - SP 3 (on VMWare)

Language: Visual Basic 6.0



Back to Top
Kenneth View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 May 2004
Location: United States
Status: Offline
Points: 256
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kenneth Quote  Post ReplyReply Direct Link To This Post Posted: 10 December 2013 at 12:32pm
What?  I thought one of the purposes of the toolkit was to take care of stuff like this!  After all, that is why you have the function XTOSVersionInfo, right?
Back to Top
Willowmaster View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 July 2010
Location: Netherlands
Status: Offline
Points: 180
Post Options Post Options   Thanks (0) Thanks(0)   Quote Willowmaster Quote  Post ReplyReply Direct Link To This Post Posted: 10 December 2013 at 3:51pm
You can't expect CodeJock to maintain support for this if Microsoft recommends not to use it anymore. This is not how Microsoft wants you to check the Windows version in the future.
Product: Xtreme SuitePro (ActiveX) version 15.3.1

Platform: Windows XP (32bit) - SP 3 (on VMWare)

Language: Visual Basic 6.0



Back to Top
Kenneth View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 May 2004
Location: United States
Status: Offline
Points: 256
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kenneth Quote  Post ReplyReply Direct Link To This Post Posted: 12 December 2013 at 1:15pm
I understand that.  However that does not mean everyone has to figure out how to still make programs running on XP, Windows 7, Windows 8.0, Windows 8.1 and future versions of windows that depend upon this function or replacement function to work correctly.

That is the purpose of a toolkit;  the support is added once, and everyone has access to it.

However, it is clear that no one wants that!  So mark my post as resolved, as in, do it yourself.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.