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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Comport callbacks or objects

Status
Not open for further replies.

tcollins

Programmer
Sep 12, 2000
34
0
0
US
I need to know how to do Com/SerialPorts in Borland C++ 5. From what I see, its pretty easy to set one up and write to it using the Win32SDK (CreateFile(), ReadFile(), WriteFile()), however, a callback function for incoming data would be welcome...byte per byte would be better. Or if I could find a Serial Port object/control in Borland that I could just drop onto the form, that would be welcome as well. Then it would know the method to call to give me my data. I really don't want to have to hand code a messaging loop doing the PeekMessage() GetMessage() thing myself.

Any help? Thanks.

Taylor
 
You might want to look at the following web sites for some "simple" components. On go to their FAQ page, then to the Window Systems section. There are a couple of questions there about IO ports. They have examples of code and some downloadable files to look at. On go to their I/O Communications page. They have some freeware components that should work; see: Asyncfree and cport260 for starters.
James P. Cottingham

I am the Unknown lead by the Unknowing.
I have done so much with so little
for so long that I am now qualified
to do anything with nothing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top