Board index » cppbuilder » Firing events to a container with user defined data types
Ted Raker
![]() CBuilder Developer |
Sat, 27 Apr 2002 03:00:00 GMT
Firing events to a container with user defined data types
Hi all,
I have successfully implemented an ActiveForm that interacts with a Dim hndl As MyHandle (instead of Dim hndl As Object) All is well up to the point when an expected event occurs (MouseDown). Next is the snippet of the event code: void __fastcall MyXAppImpl::SelectEvent(TObject *Sender, int X, int Y, h.Bind(CLSID_MyHandle); Fire_OnSelect(X, Y, (MyHandlePtr *) h); Quote}; be converted to type MyHandle as depicted in the tlb. How do I get the data of the local Handle to MyHandle and successfully use MyHandle without an assertion from occuring ?. So basically this is the model I have in mind: Container OCX MyHandle < > ?? < > MyHandle All suggestions are welcome as I am totally lost.... Regards, Ted. |