描述:
我在VC6中动态创建macromedia的FLASH控件未成功,而在VS2003中动态创建却成功了,请问有谁碰到过这个问题吗?
VC6中调试时提示是:
Warning: constructing COleException, scode = DISP_E_MEMBERNOTFOUND ($80020003).
First-chance exception in Test.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
Warning: constructing COleException, scode = DISP_E_MEMBERNOTFOUND ($80020003).
First-chance exception in Test.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
虽然VC7中也有同样的提示,但是控件却显示在窗口中,而VC6中控件却显示不出来。
我的系统中注册的是版本为8.0.22.0的文件名为Flash8.ocx的FLASH控件。
解决方案1:
我这样创建是没有问题的
ObtGcomFlashOcx m_wndMediaPlayer;
CRect rectClient(0,0,0,0);
AfxEnableControlContainer();
if(!m_wndMediaPlayer.Create(lpszWindowName,WS_VISIBLE | WS_CHILD, rectClient, this, AFX_IDW_PANE_FIRST)){
m_wndMediaPlayer.DestroyWindow();
DestroyWindow();
return FALSE;
}