🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #2911

Yet another novice on PM programming

#2911
From: Dave Mckinny
Date: Thu, 17 Dec 1992 17:18
25 lines
1945 bytes
Hello,
I have a book on PM programming by Dror and somebody else I don't have it 
with me but if there is interest I'd be happy to post the info tommorow.
Anyway, this book is subtitled a 'primer' and is up to Ver. 1.2 of os/2.
My problem is that of the three sample programs I've tried only the first 
worked. I'm using EMX/GCC. The first program just sends a beep on the speaker.
It worked no problem. The second program is supposed to put a slider on the
screen. It compiles and links ok, but when I try to execute it nothing happens.
I apologize for not having the code with me, I'll bring it tommorow. It goes 
something like this: A call to WinCreateMsgQueue with some parameters,
A call to WinCreateWindow with the 13 or so parameters,
Then a while loop with WinGetMessage in the argument and WinReplyMessage in the
body of the loop (Function names may be different I don't remember for sure).
Then WinDestoryXXXX calls for the slider and the message queue.
When I call the program from an os2 window I can see the title bar change
to the name of the exe program then the title bar changes right back. No slider
no nothing. The third program behaves the same but calls WinCreateStdWindow.

At this point I don't even know where to begin asking questions. I'm new to
PM programming, the book is out of date for the os, the book uses a different
compiler and linker (Microsoft), and I am not familiar with EMX.

Any suggestions on where to begin would be greatly appreciated.

David D. McKinny davem@orl.mmc.com
Technical Details
Message-ID: <1992Dec17.171822.1978@iplmail.orl.mmc.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!ub!csn!news.den.mmc.com!iplmail!davem

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!ub!csn!news.den.mmc.com!iplmail!davem
From: davem@iplmail.orl.mmc.com (Dave Mckinny)
Newsgroups: comp.os.os2.programmer
Subject: Yet another novice on PM programming
Message-ID: <1992Dec17.171822.1978@iplmail.orl.mmc.com>
Date: 17 Dec 92 17:18:22 GMT
Sender: davem@iplmail (Dave Mckinny)
Organization: Martin Marietta
Lines: 25