home *** CD-ROM | disk | FTP | other *** search
- 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
- From: dic5340@hertz.njit.edu (David Charlap)
- Newsgroups: comp.os.os2.programmer
- Subject: Re: Yet another novice on PM programming
- Message-ID: <1992Dec18.220842.3933@njitgw.njit.edu>
- Date: 18 Dec 92 22:08:42 GMT
- References: <1992Dec17.171822.1978@iplmail.orl.mmc.com> <19921217.121610.410@almaden.ibm.com>
- Sender: news@njit.edu
- Organization: New Jersey Institute of Technology, Newark, N.J.
- Lines: 28
- Nntp-Posting-Host: hertz.njit.edu
-
- In article <19921217.121610.410@almaden.ibm.com> lansche@torolab6.VNET.IBM.COM (Martin Lansche) writes:
- >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.
-
- Rather than use the /PM:PM parameter, I prefer to hared-code the API
- type in the .DEF file. Just put the word "WINDOWAPI" after the name
- on the first line of the .DEF file. Then you can leave out the /PM
- parameter. I prefer this, because the API type isn't going to change
- at all, and this information is more closely related to module
- definitions than to linking.
- --
- |) David Charlap | .signature confiscated by FBI due to
- /|_ dic5340@hertz.njit.edu | an ongoing investigation into the
- ((|,) | source of these .signature virusses
- ~|~
-