home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / os2 / programm / 7105 < prev    next >
Encoding:
Internet Message Format  |  1992-12-17  |  2.2 KB

  1. Path: sparky!uunet!torolab6.VNET.IBM.COM
  2. From: lansche@torolab6.VNET.IBM.COM (Martin Lansche)
  3. Message-ID: <19921217.121610.410@almaden.ibm.com>
  4. Date: Thu, 17 Dec 92 15:06:15 EST
  5. Newsgroups: comp.os.os2.programmer
  6. Subject: Re: Yet another novice on PM programming
  7. Disclaimer: This posting represents the poster's views, not those of IBM
  8. News-Software: UReply 3.0
  9. References: <1992Dec17.171822.1978@iplmail.orl.mmc.com>
  10. Lines: 31
  11.  
  12. In <1992Dec17.171822.1978@iplmail.orl.mmc.com> Dave Mckinny writes:
  13. >Hello,
  14. >I have a book on PM programming by Dror and somebody else I don't have it
  15. >with me but ....
  16. >My problem is that of the three sample programs I've tried only the first
  17. >worked. I'm using EMX/GCC. The first program just sends a beep on the speaker.
  18. >It worked no problem. The second program is supposed to put a slider on the
  19. >screen. It compiles and links ok, but when I try to execute it nothing happens.
  20. >
  21. David,  I don't know if this helps, but I have managed to get most (all
  22. but one that I tried) of the examples from the book to work.  I suspect
  23. that your problem is your linker options.  Which linker are you using?
  24. LINK386.EXE?  You need to specify these options to LINK386.EXE:
  25.    /NOL /NOE /PM:PM
  26. and you must give the correct name to the prompt for .DEF file.
  27.   If you get "incompatible types" messages at link time, you may need to
  28. add some casts.  Also, you should change the 2nd parameter for all
  29. instances of ClientWinProc from "USHORT" to "ULONG".  I didn't do this
  30. until late in the book (i.e. USHORT will work sort of), so I am sure that
  31. your problem is that when you link you are creating a PM app.
  32.   I hope this helps.
  33. Martin Lansche, IBM Lab, Toronto Canada
  34.   ________________________________________________________________________
  35.    Ilu Iluvatar en kare eldain a firimoin ar antarota mannar valion :
  36.    numessier.  Toi aina, mana, meldielto -- enga morion : talantie.
  37.    ----------------------------------------------------------------------
  38.    The father made the world for elves and mortals and he gave it into
  39.    the hands of the Lords in the West.  They are blessed, holy and loved,
  40.    except the black one.  He has fallen.  (J.R.R. Tolkien).
  41.   ________________________________________________________________________
  42.  
  43.