Link to home
Start Free TrialLog in
Avatar of laserayaneh
laserayaneh

asked on

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

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
www.mart.ir
www.laserayaneh.com
Avatar of Wim ten Brink
Wim ten Brink
Flag of Netherlands image

Read:
http://www.arunet.co.uk/tkboyd/ele1sp.htm
http://www.efg2.com/Lab/Library/Delphi/IO/PortIO.htm

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.
Avatar of Hamidreza Vakilian
Hamidreza Vakilian

Hi!

How to Handle Serial Communication Tutorial by
Jan Taralczak =>

http://www.torry.net/samples/samples/hard/com_io.zip

HRV
You could using TComPort for serial communication, and it's open source
http://sourceforge.net/projects/comport/

and look for this example
http://www.wimb.net/index.php?s=delphi&page=11


also if you need advanced serial communication libarary and more, you could  using Async Pro, it's open source too ;-)
http://sourceforge.net/projects/tpapro/
Check out Async...source code available...

http://sourceforge.net/projects/tpapro/
Avatar of laserayaneh

ASKER

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
http://www.mart.ir
http://www.laserayaneh.com
ASKER CERTIFIED SOLUTION
Avatar of House_of_Dexter
House_of_Dexter
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial