home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / programm / 13068 < prev    next >
Encoding:
Internet Message Format  |  1992-07-27  |  1.2 KB

  1. Path: sparky!uunet!stanford.edu!ames!claris!wombat
  2. From: wombat@claris.com (Scott Lindsey)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Think C 5.0 under sys7, help!!!
  5. Message-ID: <14864@claris.com>
  6. Date: 27 Jul 92 21:39:10 GMT
  7. References: <1992Jul25.053648.12278@midway.uchicago.edu>
  8. Sender: news@claris.com
  9. Organization: Claris Corporation, Vancouver WA
  10. Lines: 15
  11. Nntp-Posting-Host: lindsey
  12. Wombat: yes
  13. Number: 32373
  14.  
  15. In article <1992Jul25.053648.12278@midway.uchicago.edu>, hd12@ellis.uchicago.edu (hui  dong) writes:
  16. > I am trying to use Think C 5.0 under sys7 to recompile a C code I wrote
  17. > using 4.0 under sys6. I get lots of errors, drive me crazy! It even complains
  18. > about GetNewCWindow(WINDOW_ID,0L,-1L), saying the last argument isn't valid.
  19.  
  20. You basically have two choices.  If you turn prototype enforcement off, you
  21. should get fewer, if any, errors.  The "correct" thing to do is to fix your
  22. code so it correctly observes the prototypes.  In your example, the last arg
  23. to GetNewCWindow is of type WindowPtr.  -1L isn't a windowptr (it's a long --
  24. yes, 0 is a special case when it comes to constants).  If you cast it, it
  25. should work "GetNewCWindow(WINDOW_ID, 0L, (WindowPtr) -1L);"
  26.  
  27. --
  28. Scott Lindsey <wombat@claris.com>
  29.