🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #10595

Re: rs232 under XP

#10595
From: Alan Bellingham
Date: Tue, 30 Mar 2004 09:32
30 lines
2135 bytes
"Martin" <anonymous@anonym.net> wrote:

>I have written a tool for RS232 and it worked fine under win95/98/98SE. Now
>i have XP and it doesnt run anymore.
>
>Where could be the problem?

This is by design.

If you're writing directly to hardware, then you'll find that Windows NT
(which includes Windows 2000 (NT5) and XP (NT5.1)) do not allow it.

The concept behind Windows 95 (includes 89 and ME) did not include
memory and hardware protection. The result was that a bad process (could
be a bug, could be a virus) could do all sorts of nasty things without
the OS being able to protect the PC. Also, with things like parallel and
serial ports, there was little to prevent two different processes trying
to write to the same port, corrupting both outputs.

With NT, this isn't the case. Only code that's running at kernel level
can do so, thereby making it much more stable.

To write directly to the RS232 ports, you will need to write a device
driver, or use an existing one.

Alan Bellingham
-- 
Me <url:mailto:alanb@episys.com> <url:http://www.doughnut.demon.co.uk/>
ACCU - C, C++ and Java programming               <url:http://accu.org/>
The 2004 Discworld Convention                   <url:http://dwcon.org/>
Technical Details
Message-ID: <bcfi605kqfr7ltu6u117t8i0g18vh9evm4@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40693a3f@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,8913094e963c267d
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-03-30 01:39:40 PST
From: Alan Bellingham <alanb@episys.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: rs232 under XP
Date: Tue, 30 Mar 2004 10:32:26 +0100
Reply-To: alanb@episys.com
Message-ID: <bcfi605kqfr7ltu6u117t8i0g18vh9evm4@4ax.com>
References: <40693a3f@newsgroups.borland.com>
X-Newsreader: Forte Agent 2.0/32.646
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 62.49.31.105
X-Trace: newsgroups.borland.com 1080639146 62.49.31.105 (30 Mar 2004 01:32:26 -0800)
Lines: 30
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail