Yet another effort at translating the Win32 API headers

Don Clugston dac at nospam.com.au
Wed Mar 29 00:39:13 PST 2006


Stewart Gordon wrote:
> This project is now officially based on the public domain MinGW headers. 
>  I've translated a few more of the files on this basis, and rewritten 
> the instructions to make more sense to a translation from C headers.
> 
> I've also set up a page on Wiki4D to coordinate the project:
> 
> http://www.prowiki.org/wiki4d/wiki.cgi?WindowsAPI

Fantastic!

> Now, who's going to contribute?

I hope that I can do a bit.
> 
> In line with comments from various people including Walter, my plan is 
> for the work to be public domain.  Is this OK with everyone?
> 
> The main open issue I can think of at the moment is what to do with the 
> Windows version CC stuff.
> 
> We could get rid of the CC and just compile everything in, but this'll 
> make it easy to lose track of the minimum Windows version an application 
> supports.  We probably don't really need to distinguish between 
> Win95/NT4 and earlier Win32 (Win32s, whatever else) anymore, but it 
> might still be worth doing it with some or all Windows versions since then.

Definitely worthwhile for Win95 and above.

> Defining a set of version identifiers for the supported Windows versions 
> along the Win9x and WinNT lines is another possibility, but it'll take a 
> bit of work to determine how the #ifs should be converted.

It's possible to use 'static if', now that it works at module scope.

#if (WINVER > 0x4000)
#else
#endif
can become
static if (WINVER> 0x4000) {
} else {
}

It's probably abuse of 'static if', but it should work as an interim 
solution.

Don.



More information about the Digitalmars-d-announce mailing list