comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin D. Condic" <mcondic-nospam@quadruscorp.com>
Subject: Re: 'Open' on WinNT and Win95
Date: 2000/06/06
Date: 2000-06-06T13:09:34+00:00	[thread overview]
Message-ID: <393CF75C.54C46E99@quadruscorp.com> (raw)
In-Reply-To: YVT_4.1105$v4.555@news.indigo.ie

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
======================================================================




      parent reply	other threads:[~2000-06-06  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-06-05  0:00 'Open' on WinNT and Win95 NANCY HEHIR
2000-06-05  0:00 ` Ted Dennison
2000-06-06  0:00 ` Marin D. Condic [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox