Getting RPC_E_SYS_CALL_FAILED in IDispatchEx::GetDispID() for an out-of-proc IDispatc
Iím trying to add few automation objects to the scripts (hosted via a separate process (ATL EXE server)). Also I am trying to sink the events from these automation objects inside my ATL EXE script engine.
To achive this Iím using CDispExSinkConnector as described in http://www.codeproject.com/Articles/...ripting-Engine
As described Iím using IDispatchEx::GetDispID()to create new members inside the scripting engine. Once the member DISPID has been created, Iím using InvokeEx()to set the property value.
But these method calls return RPC_E_SYS_CALL_FAILED.
Note- Here I get the IDispEx pointer from an OUT-OF-PROC IDispatch pointer.
Any quick guidance/ help will be much appreciated.