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

Setting events without a form

Status
Not open for further replies.

Moregoths

Programmer
Jan 24, 2005
2
NL
I've been forced (yes, forced ;P) to use Borland C++ Builder 6 for a small project for school. It involves writing a Serial Interface class for a console application. However, a module that offers the serial functionality (and I am forced to use as well) is written for the use with a Form and not via a console, which brings me to a series of problems.

The biggest of these problems so far is that as the module recieves data from the other end of the serial cable, it throws a set of events, like "onBreak" and "onRxChar", which are designed to be caught by user-made functions placed in the Form class, but I don't have a form.
I noticed that this module, has a class called TComm which has some "__published" "__properties" with names such as "onBreak", "onError" and "onRxChar", and I think that these properties are the ones being set via the Object Inspector (if I did use a form).

Now my question is, how do I mangle these properties so that throwing the events will result in my functions being called without using the form? Are they just function-pointers (I hope!) or are they something nefarious? (like the rest of Borland has been so far :X)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top