accessing UART with Visual C++ 6

  • Thread starter Thread starter Dabeule
  • Start date Start date
D

Dabeule

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
 
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.
 
Back
Top