OleRun freezes
-
Hi, I tried to automate an MFC Dialog App using the recipe from the MyCoolApp article. In a few words, you make a CApplication : public CCmdTarget, add the macros by hand and insert the necessary registration calls to initInstance of the CMyApp : public CWinApp. The sample app from the article is an MDI and has a Document-View-Architecture. It works fine, but with my own app the client freezes when calling OleRun in _com_ptr_t<...>::CreateInstance. OleRun(LPUNKNOWN pUnknown) queries an IRunnableObject from IUnknown an calls its member Run (MSDN). What is generally wrong when OleRun freezes? Is the IRunnableObject missing? Is the com object which has IRunnableObject trying to contact its container, which is missing? But CreateInstance always calls OleRun. Any suggestions? Thank you. Regards Werner -- modified at 7:42 Wednesday 23rd November, 2005