I have a small vb6 app that uses a 3rd party ActiveX control. The ActiveX is the client in a client/server system. To get the events from the ActiveX my app has to call CoInitializeSecurity like so...
What I want to do is convert my exe to an ActiveX OCX so that it can be hosted by the pictures in a SCADA system, but I don't know how to use CoInitializeSecurity in this case. Do I need to use CoInitializeSecurity or is it a DCOM settings thing?Code:CoInitializeSecurity(0, -1, 0, 0, 1, 3, 0, 0, 0)
(The 'pictures' that will host the OCX are ActiveX documents and the SCADA system supports VBA).




Reply With Quote