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

  1. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!ub!csn!news.den.mmc.com!iplmail!davem
  2. From: davem@iplmail.orl.mmc.com (Dave Mckinny)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: Yet another novice on PM programming
  5. Message-ID: <1992Dec17.171822.1978@iplmail.orl.mmc.com>
  6. Date: 17 Dec 92 17:18:22 GMT
  7. Sender: davem@iplmail (Dave Mckinny)
  8. Organization: Martin Marietta
  9. Lines: 25
  10.  
  11. Hello,
  12. I have a book on PM programming by Dror and somebody else I don't have it 
  13. with me but if there is interest I'd be happy to post the info tommorow.
  14. Anyway, this book is subtitled a 'primer' and is up to Ver. 1.2 of os/2.
  15. My problem is that of the three sample programs I've tried only the first 
  16. worked. I'm using EMX/GCC. The first program just sends a beep on the speaker.
  17. It worked no problem. The second program is supposed to put a slider on the
  18. screen. It compiles and links ok, but when I try to execute it nothing happens.
  19. I apologize for not having the code with me, I'll bring it tommorow. It goes 
  20. something like this: A call to WinCreateMsgQueue with some parameters,
  21. A call to WinCreateWindow with the 13 or so parameters,
  22. Then a while loop with WinGetMessage in the argument and WinReplyMessage in the
  23. body of the loop (Function names may be different I don't remember for sure).
  24. Then WinDestoryXXXX calls for the slider and the message queue.
  25. When I call the program from an os2 window I can see the title bar change
  26. to the name of the exe program then the title bar changes right back. No slider
  27. no nothing. The third program behaves the same but calls WinCreateStdWindow.
  28.  
  29. At this point I don't even know where to begin asking questions. I'm new to
  30. PM programming, the book is out of date for the os, the book uses a different
  31. compiler and linker (Microsoft), and I am not familiar with EMX.
  32.  
  33. Any suggestions on where to begin would be greatly appreciated.
  34.  
  35. David D. McKinny davem@orl.mmc.com
  36.