home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!world!ivanski
- From: ivanski@world.std.com (Ivan M CaveroBelaunde)
- Subject: Re: One routine works, the other doesnt, WHY??
- Message-ID: <C04r8M.HH3@world.std.com>
- Organization: The World Public Access UNIX, Brookline, MA
- References: <1992Dec29.121933.1426@galaxy.gov.bc.ca>
- Date: Thu, 31 Dec 1992 15:33:57 GMT
- Lines: 19
-
- cconstantine@galaxy.gov.bc.ca writes:
-
- >Could someone please explain to me why the following routine gets compile time
- >errors under MPW C 3.2.4:
-
- >curDev = GetMainDevice();
- >pixDepth = GetPixelDepth( curDev );
- >if ( pixDepth <> 8 )
- > DeathAlert( errNot8Bit );
-
- Because the C operator for "not equal" is not "<>" (that's Pascal). It's
- "!=".
-
- If it read (pixDepth != 8) it would work.
-
- -Ivan
- ---
- Ivan Cavero Belaunde
- DiVA Corporation
-