🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Yet another novice on PM programming

#2918
From: Martin Lansche
Date: Thu, 17 Dec 1992 20:06
30 lines
2292 bytes
In <1992Dec17.171822.1978@iplmail.orl.mmc.com> Dave Mckinny writes:
>Hello,
>I have a book on PM programming by Dror and somebody else I don't have it
>with me but ....
>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.
>
David,  I don't know if this helps, but I have managed to get most (all
but one that I tried) of the examples from the book to work.  I suspect
that your problem is your linker options.  Which linker are you using?
LINK386.EXE?  You need to specify these options to LINK386.EXE:
   /NOL /NOE /PM:PM
and you must give the correct name to the prompt for .DEF file.
  If you get "incompatible types" messages at link time, you may need to
add some casts.  Also, you should change the 2nd parameter for all
instances of ClientWinProc from "USHORT" to "ULONG".  I didn't do this
until late in the book (i.e. USHORT will work sort of), so I am sure that
your problem is that when you link you are creating a PM app.
  I hope this helps.
Martin Lansche, IBM Lab, Toronto Canada
  ________________________________________________________________________
   Ilu Iluvatar en kare eldain a firimoin ar antarota mannar valion :
   numessier.  Toi aina, mana, meldielto -- enga morion : talantie.
   ----------------------------------------------------------------------
   The father made the world for elves and mortals and he gave it into
   the hands of the Lords in the West.  They are blessed, holy and loved,
   except the black one.  He has fallen.  (J.R.R. Tolkien).
  ________________________________________________________________________
Technical Details
Message-ID: <19921217.121610.410@almaden.ibm.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!torolab6.VNET.IBM.COM
References: <1992Dec17.171822.1978@iplmail.orl.mmc.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!torolab6.VNET.IBM.COM
From: lansche@torolab6.VNET.IBM.COM (Martin Lansche)
Message-ID: <19921217.121610.410@almaden.ibm.com>
Date: Thu, 17 Dec 92 15:06:15 EST
Newsgroups: comp.os.os2.programmer
Subject: Re: Yet another novice on PM programming
Disclaimer: This posting represents the poster's views, not those of IBM
News-Software: UReply 3.0
References: <1992Dec17.171822.1978@iplmail.orl.mmc.com>
Lines: 31