PC Review


Reply
Thread Tools Rate Thread

accessing UART with Visual C++ 6

 
 
Dabeule
Guest
Posts: n/a
 
      3rd Feb 2004
Hello,

I have to read/write in the UART to transfer bytes through the serial
port. I use Visual C++ 6 and Win2000.
When I used Win98, the problem was easy : the functions _inp and _outp
(or the file port95nt.dll) allow to read/write on the UART. But these
functions (or this DLL) do not work...
If anyone knows how to have the rights to access the UART with Win2000
or the functions to use in VC++, please help me !

Thanks with advance

Vincent
 
Reply With Quote
 
 
 
 
Gary G. Little
Guest
Posts: n/a
 
      3rd Feb 2004
For Windows NT and above, low level IO, inp and outp, can only be done in
the kernel via a device driver. Serial support in 2000 is quite good and
unless you are talking to some off the wall device, you don't need any
additional kernel component. If it is NOT an off the wall device such as
RS-422, 485, etc.etc. etc. the standard serial/COMM API will be all that you
need.

--
Gary G. Little
Seagate Technologies, LLC

"Dabeule" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> I have to read/write in the UART to transfer bytes through the serial
> port. I use Visual C++ 6 and Win2000.
> When I used Win98, the problem was easy : the functions _inp and _outp
> (or the file port95nt.dll) allow to read/write on the UART. But these
> functions (or this DLL) do not work...
> If anyone knows how to have the rights to access the UART with Win2000
> or the functions to use in VC++, please help me !
>
> Thanks with advance
>
> Vincent



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
USB-UART Tx line driver frengok Windows XP Drivers 2 9th Mar 2007 10:52 PM
Bluetooth uart drivers pretissimo2002@yahoo.fr Windows XP Hardware 0 26th Oct 2005 01:47 PM
UART in HP iPaq 2210 ? =?Utf-8?B?SGFyaQ==?= Microsoft Dot NET Compact Framework 4 12th Jan 2005 05:22 PM
closing out 16550 UART bruce varley Computer Hardware 0 11th Jan 2004 01:26 PM
quad uart component David D Windows XP Embedded 1 12th Nov 2003 06:22 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:48 PM.