home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!rutgers!cbmvax!cbmehq!cbmger!edohwg!heinz
- From: heinz@edohwg.adsp.sub.org (Heinz Wrobel)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: SAS/C6 Warnings
- Message-ID: <heinz.04bb@edohwg.adsp.sub.org>
- Date: 30 Oct 92 20:08:06 GMT
- References: <2ZXeTB2w165w@lakes.trenton.sc.us>
- Organization: Edotronik GmbH
- Lines: 20
-
- In article <2ZXeTB2w165w@lakes.trenton.sc.us> mr_scary@lakes.trenton.sc.us (Chris Hurley) writes:
- >Now it seems that under 6.0 I get rampant Warnings about "Expecting BPTR,
- >Found FileHandle *". Can someone tell me what I'm overlooking?
-
- Open actually returns a BPTR, _not_ a struct FileHandle *. Incidently that
- BPTR<<2 is equal to the struct FileHandle *, but nevertheless it's a BPTR.
-
- So you need to type your file handle variable as BPTR. Again: It'll only be
- a struct FileHandle * if you shift it left two bits. But as all OS
- functions use it as a BPTR you shouldn't do that ;^)
-
- >Chris- (mr_scary@lakes.trenton.sc.us)
-
- --
- Heinz Wrobel, Edotronik GmbH (ECG018)
- FAX +49 89 850 51 25 / TEL +49 89 850 25 20 (HOME!&VOICE, sometimes...)
- Path: cbmehq!cbmger!edohwg!heinz@cbmvax.commodore.com
- "It's good to have a mouse, it's faster if you can do without one..."
- "He who doesn't develop with an A2024 doesn't know about font independent
- user interfaces..."
-