home *** CD-ROM | disk | FTP | other *** search
- 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
- From: heinz@edohwg.UUCP (Heinz Wrobel)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: 1.2, 1.3, and 2.0 question
- Message-ID: <heinz.03c4@edohwg.UUCP>
- Date: 1 Sep 92 19:37:26 GMT
- References: <64890@cup.portal.com> <paulk.1av6@terapin.com> <65001@cup.portal.com>
- Organization: Edotronik GmbH
- Lines: 23
-
- In article <65001@cup.portal.com> Tony-Preston@cup.portal.com (ANTHONY FRANCIS PRESTON) writes:
- >Why not just:
- >
- > BPTR nil;
- > nil = Open("NIL:",MODE_OLDFILE);
- > Execute(Command,nil,nil);
- >
- > This way I get a valid file pointer for both 1.2/1.3/2.0 and don't
- > have to worry. At least I am trying this solution(btw, I Close(nil);
- > after the Execute returns).
-
- You have a valid FileHandle but NIL: doesn't have a handler process. SO any
- program or command you start that makes use of DeviceProc() and relies on
- a return value will die. That's why NULL: was suggested.
-
-
- --
- 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..."
-