Here's the problem:
I've made a few ActiveForm's in Delphi 3. I've registered them and added them to the component palette in C++Builder.
I've even dragged these ActiveForm's onto a C++Builder form, compiled and executed the resulting program with no problems. I have full intereaction with the ActiveForm from within my C++Builder app. This all works fine.
Here's the catch...we don't want to use these ActiveForm's at design time. We have to load them at run-time (because there will be many of them) and the user will decide which sub-module he/she wantsto work with.
So here's what I have done so far:
I took a TOleContainer and dropped it on my C++Builder form. I then loaded the ActiveForm with the following statement:
This appears to work fine. The ActiveForm is loaded into the TOleContainer. Unfortuantely, you only get to look at the ActiveForm, you don't get to interact with it.
So, I'm beginning to wonder if TOleContainr is what I should be using. This is my first foray into ActiveX and unfortunately my requirements are kind of unusual.
I need to know how to load in an ActiveForm at run-time given only the name of the OCX and the name of the class within (i.e. OCXSubModule.Tier2SubModule).
I need a solution in Delphi2 or C++Builder. Delphi 2 and and C++Builder are very similar. If you give me a D3 example, please make sure it will work as is in D2.
Thank you. If need by, I can bump the points for this question up by about 100 more.