Article View: comp.os.os2.programmer
Article #360Re: A question or three.
From: Kaleb Keithley
Date: Tue, 11 Aug 1992 16:04
Date: Tue, 11 Aug 1992 16:04
43 lines
2182 bytes
2182 bytes
In article <19920811.003756.988@almaden.ibm.com> peterf@vnet.ibm.com writes:
>In <1992Aug10.162757.13720@thyme.jpl.nasa.gov> Kaleb Keithley writes:
>>I'm trying to get up to speed on PM programming, so I dragged out my
>>old issues of Micros*ft Journal and started typing in Charles Petzold's
>>Checkers program. I'm using the non-EMX gcc, if that makes a difference.
>>
>>Question 1: Given the following code fragment...
>>
>>MRESULT EXPENTRY ClientWndProc (
>> HWND hwnd,
>> USHORT msg,
>> MPARAM mp1,
>> MPARAM mp2)
>>{
>> ...
>> switch (COMMANDMSG (&msg)->cmd) {
>> ...
>>
>Firstly, under 2.0 the message parameter (msg) to your client window
>procedure should be a ULONG, not a USHORT.
>
Really? I found a prototype, in one of the headers, for window procs
that confirmed (if you can call it that) that the msg parameter is still
an USHORT -- at least in whatever beta version of OS/2 that gcc took its
headers from. I guess, since gcc was built on a beta release, that I
shouldn't take it for granted that its headers are correct.
I wonder how we (the set of all OS/2 gcc users) might get a more up to
date set of header files, short of buying C/Set 2? (If we had, wanted
or could afford C Set/2, we wouldn't be using gcc, would we?. I know I
personally can't justify the price of C Set/2 for use on my home system!
Perhaps IBM could take a hint from that other company and offer a $69 C
Set/2.)
So, anyone know if a new version of gcc, based on non-beta OS/2 is
forthcoming from anywhere?
--
Kaleb Keithley kaleb@thyme.jpl.nasa.gov
Not authorized, in any way, shape, or form, to speak for anyone.
Technical Details
Message-ID:
<1992Aug11.160414.16295@thyme.jpl.nasa.gov>Path:
arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!mahendo!thyme!kalebReferences:
<1992Aug10.162757.13720@thyme.jpl.nasa.gov> <19920811.003756.988@almaden.ibm.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer,comp.os.os2.advocacy Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!mahendo!thyme!kaleb From: kaleb@thyme.jpl.nasa.gov (Kaleb Keithley) Subject: Re: A question or three. Message-ID: <1992Aug11.160414.16295@thyme.jpl.nasa.gov> Organization: Jet Propulsion Laboratory, Pasadena, CA References: <1992Aug10.162757.13720@thyme.jpl.nasa.gov> <19920811.003756.988@almaden.ibm.com> Date: Tue, 11 Aug 92 16:04:14 GMT Lines: 43