O
Oriane
Hi there,
Inside a .Net project, I want to get an handle on an executable (a.exe)
ActiveX component instance, that is get it as an object if it is running.
I'll try with this code:
object o =
System.Runtime.InteropServices.Marshal.GetActiveObject("StibilServControl.CStibilServControl");
Unfortunaltely, I'm told that this operation is not available (error +
$exception {" Operation not available (Exception de HRESULT : 0x800401E3
(MK_E_UNAVAILABLE))"} System.Exception
{System.Runtime.InteropServices.COMException}
Any idea ?
The problem is that I use this ActiveX component inside a Web Service and
that if I simply create an instance of this ActiveX in the Web service class
constructor, each call to one of the Web service method calls the
constructor of the Web service which in turn creates the ActiveX. So at the
end, I've got plenty of them when only one would be enough !
Best regards
Inside a .Net project, I want to get an handle on an executable (a.exe)
ActiveX component instance, that is get it as an object if it is running.
I'll try with this code:
object o =
System.Runtime.InteropServices.Marshal.GetActiveObject("StibilServControl.CStibilServControl");
Unfortunaltely, I'm told that this operation is not available (error +
$exception {" Operation not available (Exception de HRESULT : 0x800401E3
(MK_E_UNAVAILABLE))"} System.Exception
{System.Runtime.InteropServices.COMException}
Any idea ?
The problem is that I use this ActiveX component inside a Web Service and
that if I simply create an instance of this ActiveX in the Web service class
constructor, each call to one of the Web service method calls the
constructor of the Web service which in turn creates the ActiveX. So at the
end, I've got plenty of them when only one would be enough !
Best regards