Did you find an answer to this yet? My problem is not quite the same, but
might be related. When CreateObject (or New) is applied to the MFC application
object, MFC's AfxWinMain()hangs because the message loop (pThread->Run()) never
returns control to the calling thread until the application finishes.

I don't know how to fix this so I'm asking around. For your problem, you
may want to check the:

if (cmdInfo.m_bRunEmbedded || cmdInfo.m_bRunAutomated)

line in InitInstance(). This returns right away if running automation and
will not let the app initialize the frame window.

-- Rolando
[email protected]