Using Active TTS in C++ Builder

Active TTS is a standard COM server object. C++ Builder supports COM automation just like Delphi.

The general steps are:

1. Import the type library of the COM object. In our case, the type library name for Active TTS is “TTSObj 1.0 Type Library”

C++ Builder will generate the wrapper C++ class for the COM object.

 

 2. After the wrapper is generated, you can create an object instance of the wrapper class just as if it is a normal C++ class. The COM automation happens underneath automatically  when you make a call to the wrapper object. 

 

Reference:

COM Automation in BCB4