AtlAxWinInit();

CAxWindow m_wndFlashPlayer;

 CComPtr<IShockwaveFlash> m_FlashPtr;

 

         CComPtr<IUnknown> punkCtrl;
        //CComQIPtr<IWebBrowser2> pWB2;
        CComVariant v;

  CRect rc(0,0,100,100);
        // Create the AX host window.
        m_wndFlashPlayer.Create ( *this, rc, _T(""), WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN );

        // Create the browser control using its GUID.
        m_wndFlashPlayer.CreateControlEx ( L"{D27CDB6E-AE6D-11CF-96B8-444553540000}", NULL,
                                NULL, &punkCtrl );


        //pWB2 = punkCtrl;
  m_FlashPtr = punkCtrl;

        if ( m_FlashPtr )
            m_FlashPtr->put_Movie(_bstr_t("e:\\test.swf"));

 

http://www.cnblogs.com/chuncn/archive/2011/12/07/2279825.html