Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 18 in printed book and digital formats -- plus a one-year subscription (beginning with 19.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 5.6

COLUMN

Windows version

Asking for the correct Windows version from REALbasic Code using Declares.

Issue: 5.6 (September/October 2007)
Author: Christian Schmitz
Article Description: No description available.
Article Length (in bytes): 7,916
Starting Page Number: 44
Article Number: 5617
Resource File(s):

Download Icon 5617.zip Updated: 2013-03-11 19:08:00

Related Web Link(s):

http://msdn2.microsoft.com/en-us/library/ms724451.aspx
http://msdn2.microsoft.com/en-us/library/ms724429.aspx

Excerpt of article text...

All Windows versions should be equal to you as the programmer, but some are different so if a customer has a problem you might ask him what Operation System he is using. For Mac OS see the listing for a nice version function in Listing #1.

Collection version data for Windows

For Windows it's a little bit more complicated. First we will make a declare statement to the function GetVersionEx which returns the version information record. Than we have to interpret it, but let's start with the declare. The C code looks like that:

BOOL GetVersionExA(LPOSVERSIONINFO lpVersionInfo);

As you can see it's just a boolean function with a pointer (lp is short for a long pointer) pointing to a memoryblock. So we get this declare:

...End of Excerpt. Please purchase the magazine to read the full article.