How to return an object pointer from an ActiveX control
-
I have an ActiveX control CPeopleCtrl. CPeopleCtrl contains method CHuman * GetHuman(BOOL manWomen) that export a male or a women. How can I add an external method or property for this class method? I don't know how to expose CHuman...:confused: I'm using VC 6.0 Thanks in advance
-
I have an ActiveX control CPeopleCtrl. CPeopleCtrl contains method CHuman * GetHuman(BOOL manWomen) that export a male or a women. How can I add an external method or property for this class method? I don't know how to expose CHuman...:confused: I'm using VC 6.0 Thanks in advance
An example is DataGrid control activex from microsoft. The control has a method or property GetColumns which return an reference to CColumns. How Microsoft do that? CColumns is not a control... I don't know what is it...
-
I have an ActiveX control CPeopleCtrl. CPeopleCtrl contains method CHuman * GetHuman(BOOL manWomen) that export a male or a women. How can I add an external method or property for this class method? I don't know how to expose CHuman...:confused: I'm using VC 6.0 Thanks in advance
See TN065: Dual-Interface Support for OLE Automation Servers http://msdn.microsoft.com/library/en-us/vclib/html/_MFCNOTES_TN065.asp[^] http://blog.joycode.com/jiangsheng http://blog.csdn.net/jiangsheng Command what is yours Conquer what is not ---Kane