From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,cd760b0fe214378a X-Google-Attributes: gid103376,public From: "Marin D. Condic" Subject: Re: 'Open' on WinNT and Win95 Date: 2000/06/06 Message-ID: <393CF75C.54C46E99@quadruscorp.com>#1/1 X-Deja-AN: 631702784 Content-Transfer-Encoding: 7bit References: Organization: Quadrus Corporation X-Sender: "Marin D. Condic" (Unverified) X-Server-Date: 6 Jun 2000 13:09:34 GMT Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-06-06T13:09:34+00:00 List-Id: NANCY HEHIR wrote: > > Can anyone tell me why the command > > Open(Target_File,Append_Mode,"COM1"); > > runs successfully on WinNT platform but raises a Device_Error when run on a > Win95 platform ? That would probably be because WinNT is a "real" operating system and Win95 is a "toy" operating system - or the first computer virus to come complete with a GUI interface. :-) If you're trying to write to the COM1 port, you might try checking to see if possibly something else has control of it while you're trying to open it. Check out Win32api documentation on the CreateFile call for insight as to how the system really connects to something like the COM port. (I've got "Win32 System Services" by Marshall Brain and frequently find it invaluable.) You might also check out the compiler documentation to see if they say anything about using the "Form" parameter to the Open command. You may be able to specify additional access control information. Or you might check to see if the device connected to COM1 is broke? MDC -- ====================================================================== Marin David Condic - Quadrus Corporation - http://www.quadruscorp.com/ Send Replies To: m c o n d i c @ q u a d r u s c o r p . c o m Visit my web site at: http://www.mcondic.com/ "Some people think programming Windows is like nailing jello to the ceiling... easy with the right kind of nails." -- Ivor Horton - Beginning Visual C++ 6 ======================================================================