[RESOLVED] CoInitializeSecurity in OCX?
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...
Code:
CoInitializeSecurity(0, -1, 0, 0, 1, 3, 0, 0, 0)
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?
(The 'pictures' that will host the OCX are ActiveX documents and the SCADA system supports VBA).