RE: WinCon.DLL; nested structures

From: Elizabeth D. Rather <erather_at_forth.com>
Date: Sun, 10 Dec 2000 11:34:41 -0800

> -----Original Message-----
> From: sftalk-admin_at_forth.com [mailto:sftalk-admin_at_forth.com]On Behalf Of
> Douglas Beattie Jr.
> Sent: Sunday, December 10, 2000 9:30 AM
> To: SFtalk Mailing List
> Subject: [sftalk] WinCon.DLL; nested structures
>
>
> 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.

Although WinCon.DLL defines a lot of constants, the total potential number
is so vast it'll probably never be practical to approach "all". The present
file includes those used by the system and its options and examples, plus
quite a few more commonly used ones. Others you'll have to define yourself.
We're happy to take requests for items that should be added!

> 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).

The relevant manual section is 8.1.1, parameter handling (in the context of
parameters to Windows functions), particularly the paragraph:

"All parameters are single, 32-bit stack items. Many are integers; some are
absolute addresses. In some cases, incoming parameters need to be masked to
get the high or (more commonly) low 16-bit "word." SwiftForth provides
words that facilitate this."

Refer to some of the examples provided with the system to see how these
things work out in practice.

Cheers,
Elizabeth
Received on Sun Dec 10 2000 - 11:48:51 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.