Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading and Writing to a Serial Comm Port 1

Status
Not open for further replies.

vacunita

Programmer
Aug 2, 2001
9,166
MX
I need to send some information to a serial port and read back from it. Is there any way to do it??

Any help would be appreciated
thanx
 
AFAIK, there is no nice VCL wrapper for Windows' serial port stuff; so you have to use Windows APIs directly. These aren't object oriented, and are much less pretty than the VCL stuff; but they're quite useable. Their help is in a different place, too. Go to Start -- Programs -- Delphi -- Help -- MS SDK Help Files, and you'll see a swagload of help files. (If they're not there, you probably neglected to install them when you installed Delphi.) Go to, oh, let's say the Win32 Programmer's Reference; although as far as I can make out, these help files are all heavily interlinked and it doesn't much matter which one you open. Look up Communications in the index, and then use the >> button to page through. This should give you what you need to know. Examples are in C, but you should be easily able to translate.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top