COM outbound call results in “An outgoing call cannot be made since the application is dispatching an input-synchronous call.”

前端 未结 3 496
一个人的身影
一个人的身影 2021-02-03 11:26

I have a COM server (C++/STA (MFC based app)) and a COM client (C#/MTA). The COM server must live in an STA, since it\'s an MFC app (I have no choice in this matter). The client

3条回答
  •  清酒与你
    2021-02-03 11:39

    You can create a timer when you get the message and then do your COM calls and further processing in your TimerProc/WinProc under WM_TIMER. This works for me.

提交回复
热议问题