Writing Client Code Based On Type Library Definitions
Go Up to Controlling an Imported Object
Although you must use a component wrapper for hosting an ActiveX control, you can write an Automation controller using only the definitions from the type library that appear in the TypeLibName_TLB unit. This process is a bit more involved that letting a component do the work, especially if you need to respond to events.
The following topics describe how to implement the various actions your Automation controller needs to perform:
- Connect to the server.
- Control the Automation server using a dual interface.
- Control the Automation server using a dispinterface.
- Respond to events generated by the Automation server.