I want Get and Put one byte to Serial Port (2F8 or 3F8) in Windows 98/XP/NT/2000

Posted on 2006-07-18
Last Modified: 2010-04-05
Hi ti all,

I want Get and Put one byte to serial port (2F8 or 3F8) in Windows 98/XP/NT/2000, anyone can help me, I will be very happy and thaksfull.

Thanks in advanecd,
A.R. Rafiee
Question by:laserayaneh
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 17

Expert Comment

by:Wim ten Brink
ID: 17129248

Keep in mind that NT/2000/XP have implemented a security layer which won't allow you direct access to the serial ports. This should still be possible in 98/ME. Thus you might end up with two different solutions.
LVL 14

Expert Comment

by:Hamidreza Vakilian
ID: 17134716

How to Handle Serial Communication Tutorial by
Jan Taralczak =>

LVL 22

Expert Comment

by:Mohammed Nasman
ID: 17136247
You could using TComPort for serial communication, and it's open source

and look for this example

also if you need advanced serial communication libarary and more, you could  using Async Pro, it's open source too ;-)
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Expert Comment

ID: 17140821
Check out Async...source code available...

Author Comment

ID: 17176673
Hi to All,
 Thanks in advance for all comments ;-)

 I want use ReadPort(PortAddress) and WritePort(PortAddress, OneByte) in Windows XP and Windows 2000 and Windows NT, I can use this functions in Win98 and Win98SE , but this functions don't work under Windows XP/Windows 2000/Windows NT, Please help me how to use this funtions under Windows XP and Windows 2000 and Windows NT.

Thanks in advanced,
AliReza Rafiee

Accepted Solution

House_of_Dexter earned 100 total points
ID: 17179931
You can't  as been can't get direct access to the hardware...but you can work around it...

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
LAN or WAN ? 11 120
CheckListBox usage 3 97
Way to create an iPhone app for my customers 8 89
Error when I try to post by IdHttp, error 500 - Help 2 22
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit If you want to manage em…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question