Okay, my container application is or has a standard interface. i.e. logo, menu system, and toolbar. When a new exe is detected in the same directory, I shell it with a /r so that it can register what it needs within the settings database. (not just any exe...) These settings tell the container app what menus to display and what buttons to display when it is shelled. Now, when this dropin exe is shelled for operation, it is passed the hwnd of a MDI child form that is maximized in the MDIParent form that is the container and it is passed the hwnd of a textbox that is not visible (the form is a dummy blank form...). Now, this dropin exe uses the SetParent API to affix itself to the child form and then uses sendmessage to the hidden text box to pass its hidden text boxes hwnd so further communication can commence between the two as needed. All works well but this is such a cludge. I know there has to be a better way, but as I said it works well and allows me to add functionality that I had never thought of when the container was created.
Now, over the past few days I have been rereading all my books on activex dll's, controls, and exe's and I quote from the book titled "Advanced Microsoft Visual Basic 6.0 Second Edition" Published by Microsoft Press and I guess authored by "The Mandelbrot Set" with a forward by Sean Alexander.
Okay, the quote is... "Controls (UserControls, that is) can be brought entirely inside an application or compiled to OCXs. (Servers have the potential to be brought inside an application, also)." ...,which can be found on pg 483, chapter 11 (Mixing Languages with visual studio).
Okay,... So a server is an ActiveX exe, as I understand it from reading seven chapters from three different books and countless web examples, but I cannot find an example or set of instructions that will allow me to contain an activex exe within my container program as I presently do.
After reviewing the licensing scheme at MS about UC's I cannot use a UC in the way I want.
So, the question is. How to make an activex exe's form become a child or be contained by another exe/activex exe as the objective is... To allow a customer to download the container program and the options that they want. Then if they want other options, all they would need to do is download the new exe into the same directory and it would be picked up by the container program through its existing methods (see above if you have forgotten already )
Once again, this is something like the MMC (now renamed to just Computer Management) but please do not get confused with thinking I want to know how to create a program for the MMC as I have that documentation around here somewhere already.
So, any hints or clues???
Now, over the past few days I have been rereading all my books on activex dll's, controls, and exe's and I quote from the book titled "Advanced Microsoft Visual Basic 6.0 Second Edition" Published by Microsoft Press and I guess authored by "The Mandelbrot Set" with a forward by Sean Alexander.
Okay, the quote is... "Controls (UserControls, that is) can be brought entirely inside an application or compiled to OCXs. (Servers have the potential to be brought inside an application, also)." ...,which can be found on pg 483, chapter 11 (Mixing Languages with visual studio).
Okay,... So a server is an ActiveX exe, as I understand it from reading seven chapters from three different books and countless web examples, but I cannot find an example or set of instructions that will allow me to contain an activex exe within my container program as I presently do.
After reviewing the licensing scheme at MS about UC's I cannot use a UC in the way I want.
So, the question is. How to make an activex exe's form become a child or be contained by another exe/activex exe as the objective is... To allow a customer to download the container program and the options that they want. Then if they want other options, all they would need to do is download the new exe into the same directory and it would be picked up by the container program through its existing methods (see above if you have forgotten already )
Once again, this is something like the MMC (now renamed to just Computer Management) but please do not get confused with thinking I want to know how to create a program for the MMC as I have that documentation around here somewhere already.
So, any hints or clues???