home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / amiga / programm / 13027 < prev    next >
Encoding:
Internet Message Format  |  1992-09-02  |  1.4 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewsc!cbfsb!att-out!pacbell.com!iggy.GW.Vitalink.COM!cs.widener.edu!dsinc!bagate!cbmvax!cbmehq!cbmger!edohwg!heinz
  2. From: heinz@edohwg.UUCP (Heinz Wrobel)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re:  1.2, 1.3, and 2.0 question
  5. Message-ID: <heinz.03c4@edohwg.UUCP>
  6. Date: 1 Sep 92 19:37:26 GMT
  7. References: <64890@cup.portal.com> <paulk.1av6@terapin.com> <65001@cup.portal.com>
  8. Organization: Edotronik GmbH
  9. Lines: 23
  10.  
  11. In article <65001@cup.portal.com> Tony-Preston@cup.portal.com (ANTHONY FRANCIS PRESTON) writes:
  12. >Why not just:
  13. >
  14. >   BPTR nil;
  15. >   nil = Open("NIL:",MODE_OLDFILE);
  16. >   Execute(Command,nil,nil);
  17. >
  18. > This way I get a valid file pointer for both 1.2/1.3/2.0 and don't
  19. > have to worry.  At least I am trying this solution(btw, I Close(nil);
  20. > after the Execute returns).
  21.  
  22. You have a valid FileHandle but NIL: doesn't have a handler process. SO any
  23. program or command you start that makes use of DeviceProc() and relies on
  24. a return value will die. That's why NULL: was suggested.
  25.  
  26.  
  27. --
  28. Heinz Wrobel, Edotronik GmbH (ECG018)
  29. FAX +49 89 850 51 25 / TEL +49 89 850 25 20 (HOME!&VOICE, sometimes...)
  30. Path: cbmehq!cbmger!edohwg!heinz@cbmvax.commodore.com
  31. "It's good to have a mouse, it's faster if you can do without one..."
  32. "He who doesn't develop with an A2024 doesn't know about font independent
  33.  user interfaces..."
  34.