Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Comport callbacks or objects

Comport callbacks or objects

Comport callbacks or objects

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.


RE: Comport callbacks or objects

You might want to look at the following web sites for some "simple" components. On www.bcbdev.com 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 www.vclcomponents.com 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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close