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