Hello SwiftForthers..
Now that I'm starting to learn SwiftForth v2.00.3 , I'm looking at many
different Win32 examples which are written in C (e.g. Petzold's and others),
and some questions arise.
Are some Win32 constants not defined in WinCon.DLL ..? I had trouble using
some functions, namely ScrollWindow and ScrollWindowEx.
Not all structures are defined in the kernel, and I'm kind-of new to SWOOP,
but (according to section 10.1.4, "embedded objects") should the following
class work properly?
CLASS PAINTSTRUCT
VARIABLE hdc
VARIABLE fErase
RECT BUILDS rcPaint \ ??? nested RECT Structure
VARIABLE fRestore
VARIABLE fIncUpdate
32 BUFFER: rgbReserved
END-CLASS
PAINTSTRUCT BUILDS ps.
Furthermore, in the C code it was not obvious why I even need to declare
a PAINTSTRUCT, as long as I use a buffer big enough to hold the device
context -- is this just some common sense finally creeping up on me..?
And finally, when referring to documentation for Win32 API functions, many of
the data types are in C notation, such as "dword" and "long". How do these
correspond with SwiftForth cell size, and variable declarations, particularly
in objects? For example, I think I saw HVARIABLE in a class declaration, but
I found no reference to it in the SwiftForth Reference Manual. It appears to
correspond to a 16-bit integer (Half-size Variable?"). I suppose I could do all
the math, but is there a chart somewhere in the manual (I wonder).
-- Douglas Beattie Jr. http://www2.whidbey.net/~beattidp/Received on Sun Dec 10 2000 - 09:44:10 PST
Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!
This archive was generated 09-Feb-2012. Archive updated nightly.