The TOleContainer can of course, insert OLE Objects like Word Documents. But it doesn’t seem to work for ActiveX. I know, of course, about Delphi’s IDE ability to create an ActiveX wrapper. What if I want to create a control without creating a wrapper and installing it into the IDE, at runtime?
The control is registered, so unlike this question, I don’t need registration-free com. I just need some idea, or some sample, of how dynamic ActiveX Containers are started.
The
TOleContainerworks with ActiveX controls, you only need pass the properProgIDof the Activex control to theCreateObjectmethod and then using late-binding access the properties of the ActiveX.Check this sample which create a Windows Media Player ActiveX control inside of a TOleContainer in runtime.