windows constants - download

Everything else that doesn't fall into one of the other PB categories.
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

windows constants - download

Post by Dare2 »

If you want the values of windows constants, here is a download that may be useful:

www.tabturn.com/pbOddments/winconst.zip

This file is just over 200k and contains:

windowsInc.txt - a copy of WINDOWS.INC from masm32
convertWinInc.pb - a program that extracts many of the constants.

The conversion creates a file called winConstants.pb. This file is large (over 600k) so it may pay to use a dedicated text editor to load it and pull out just the constants you need. It may hang jaPBe or the pb editor.

The contents of the converted file are also "As-Is", use at own risk.

There are at least 4 conversions that made it across but are poorly constructed and will fail.
.. and ..
There may be many that were not converted.

However as you have the data source and the .pb that created them, you can fix any errors. :)

To avoid conflicts with already existing constants, the constants created begin with #_, and have the format:

#_REALNAME = [value]
eg
#_TRUE = 1
#_WM_KEYDOWN = $100
#_WVR_REDRAW = #_WVR_HREDRAW | #_WVR_VREDRAW

The source file, windowsInc.txt also contains some useful structures, etc, in asm syntax, easier to understand and convert than C (for me, anyhow).

In fact the source file is quite interesting for the clues it gives.

I will leave this up there for a few days in case it is useful to anyone. Let me know if it is.
Henrik
Enthusiast
Enthusiast
Posts: 404
Joined: Sat Apr 26, 2003 5:08 pm
Location: Denmark

Post by Henrik »

Nice thanx Dare2 :)

Best regrads
Henrik
Post Reply