Hi,
Ok this might be a bit of a tricky thing I want to accomplish. Here is the idea.
I would like to dynamically instantiate ActiveX controls on a form. This can be
done through the use of ATL and it seems to work pretty well. I can get the
dispatch pointer and set the properties even with the scripting engine Enable Basic.
Now, the next step would be to have the events fired from the ActiveX to run a script function. The question is how can one accomplish late binding of events.
The Events From ... To... is compile-time related. I need to be able to intercept the click of a button (ActiveX control button that is) and handle that event be calling some user defined routine. This routine is only known at runtime (a script f.i.).
Sor far I found this url:
http://msdn.microsoft.com/en-us/magazine/cc301508.aspx
But it's a bit above my head at the time. I think I should go to school again.
Any other ideas are welcome
Steven
Ok this might be a bit of a tricky thing I want to accomplish. Here is the idea.
I would like to dynamically instantiate ActiveX controls on a form. This can be
done through the use of ATL and it seems to work pretty well. I can get the
dispatch pointer and set the properties even with the scripting engine Enable Basic.
Now, the next step would be to have the events fired from the ActiveX to run a script function. The question is how can one accomplish late binding of events.
The Events From ... To... is compile-time related. I need to be able to intercept the click of a button (ActiveX control button that is) and handle that event be calling some user defined routine. This routine is only known at runtime (a script f.i.).
Sor far I found this url:
http://msdn.microsoft.com/en-us/magazine/cc301508.aspx
But it's a bit above my head at the time. I think I should go to school again.
Any other ideas are welcome
Steven
Comment