Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

I can read from serial port in XP with a code for Win98!

Status
Not open for further replies.

Munib

Advanced Member level 4
Full Member level 1
Joined
Jun 11, 2004
Messages
114
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Activity points
1,129
serial port in xp

why i cant read from serial port whem i m using windows XP the same code works well in windows 98
i m using C++
 

Re: serial port in xp

Windows XP, and in general NT, have mechanisms in place which prevent you from accessing the serial port directly like you used did in Win95/98/Me.

In order to allow legacy code to work have a look at: **broken link removed** essentially it includes a driver which will allow older code to work.

You can access the serial port (and any other device) using the Windows API CreateFile() function and set the DCB structure. Have a look at:

- Jayson
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top