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

  1. Path: sparky!uunet!spool.mu.edu!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!sun-barr!rutgers!njitgw.njit.edu!hertz.njit.edu!dic5340
  2. From: dic5340@hertz.njit.edu (David Charlap)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: Re: Yet another novice on PM programming
  5. Message-ID: <1992Dec18.220842.3933@njitgw.njit.edu>
  6. Date: 18 Dec 92 22:08:42 GMT
  7. References: <1992Dec17.171822.1978@iplmail.orl.mmc.com> <19921217.121610.410@almaden.ibm.com>
  8. Sender: news@njit.edu
  9. Organization: New Jersey Institute of Technology, Newark, N.J.
  10. Lines: 28
  11. Nntp-Posting-Host: hertz.njit.edu
  12.  
  13. In article <19921217.121610.410@almaden.ibm.com> lansche@torolab6.VNET.IBM.COM (Martin Lansche) writes:
  14. >In <1992Dec17.171822.1978@iplmail.orl.mmc.com> Dave Mckinny writes:
  15. >>Hello,
  16. >>I have a book on PM programming by Dror and somebody else I don't have it
  17. >>with me but ....
  18. >>My problem is that of the three sample programs I've tried only the first
  19. >>worked. I'm using EMX/GCC. The first program just sends a beep on the speaker.
  20. >>It worked no problem. The second program is supposed to put a slider on the
  21. >>screen. It compiles and links ok, but when I try to execute it nothing happens.
  22. >
  23. >David,  I don't know if this helps, but I have managed to get most (all
  24. >but one that I tried) of the examples from the book to work.  I suspect
  25. >that your problem is your linker options.  Which linker are you using?
  26. >LINK386.EXE?  You need to specify these options to LINK386.EXE:
  27. >   /NOL /NOE /PM:PM
  28. >and you must give the correct name to the prompt for .DEF file.
  29.  
  30. Rather than use the /PM:PM parameter, I prefer to hared-code the API
  31. type in the .DEF file.  Just put the word "WINDOWAPI" after the name
  32. on the first line of the .DEF file.  Then you can leave out the /PM
  33. parameter.  I prefer this, because the API type isn't going to change
  34. at all, and this information is more closely related to module
  35. definitions than to linking.
  36. -- 
  37.   |)  David Charlap          | .signature confiscated by FBI due to
  38.  /|_  dic5340@hertz.njit.edu | an ongoing investigation into the
  39. ((|,)                        | source of these .signature virusses
  40.  ~|~
  41.