dynamic creation of ActiveX?
Posted on 1998-11-05
What i've got is this home grown script file that reads in prog ID's and their properties. I want a container to basically take those prog ID's create my ActiveX object and set their properties dynamically on the fly. Right now I'm trying the method where I get the dispatch interface from CommandTarget in the COleClientItem::OnActivateUI() and set the properties on what I want...I was wondering if anybody has a better solution to this problem...I also have a action events for object in the scripts. The only examples I've seen for containers is that they include the ActiveX object in their program through the Component Gallery, and then It hard codes the disp IDs into the CWnd derived class, what I was thinking was I can create a CWnd derived class, and basically CreateControl() on all of my ActiveX objects and use that class to maintain my controls...Any input or code would be appreciated...Thanks...my email is firstname.lastname@example.org if someone wants to email me...