Hi all,
I am developing a Windows app with WebBrowser control (IWebBrowser2) embedded.
Things look good if I initialize COM apartment as single threaded:
CoInitialize(NULL);
However, if I change it to be multithreaded:
CoInitializeEx(NULL, COINIT_MULTITHREADED);
then it starts to fail all over the places with return value of:
An outgoing call cannot be made since the application is dispatching an input-synchronous call.
from calls to IWebBrowser2 methods.
Can someone please tell me how so solve the problem? I have to use multithreaded apartment as a requirement. Please help!
Thanks.