Re: How to use serial port

[ Delphi Forum ] [ Delphi Tutorials -- by DelphiLand ]

Posted by Nick on July 10, 2003 at 20:08:57:

In Reply to: How to use serial port posted by imam+panda on June 27, 2003 at 21:24:51:

: : I want to know how to send and to receive one characther from my serial port ?

Delphi does not contain any components for dealing with serial i/o. Instead, there are two ways to go about serial i/o: 1. Learn the Windows API functions you need to call to perform the tasks you want (difficult and time-consuming) or 2. Download someone else's serial i/o software that already calls the necessary API functions for you.

I recommend the latter. Personally, I'm using MarshallSoft's WSC4D ( It has the best documentation and examples I've found. The software is free, but you have to register it for $100 if you want a slightly-annoying pop-up to go away. Of course, there are many other COMPLETELY FREE alternatives - this one just worked for me. You should visit Torry's Delphi Pages ( and do a search for "serial" or something else along those lines. You'll turn up lots of useful help.

Best of luck,

[ Delphi Forum ]
[ DelphiLand: free Delphi source code, tips, tutorials ]