home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / amiga / programm / 15610 < prev    next >
Encoding:
Internet Message Format  |  1992-11-09  |  1.3 KB

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