代码如下:
// 创建FALSH窗口
if (!m_ShockwaveFlash.Create("MyFlash", WS_CHILD | WS_VISIBLE, CRect(0, 0, rc.right, rc.bottom), this, 102))
{
CString str;
str.Format("%d", GetLastError());
AfxMessageBox(str);
} 同样的代码放在exe中就可以创建成功!
// 创建FALSH窗口
if (!m_ShockwaveFlash.Create("MyFlash", WS_CHILD | WS_VISIBLE, CRect(0, 0, rc.right, rc.bottom), this, 102))
{
CString str;
str.Format("%d", GetLastError());
AfxMessageBox(str);
} 同样的代码放在exe中就可以创建成功!
代码这样的:int CPlayFlashDlg::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CDialog::OnCreate(lpCreateStruct) == -1)
return -1; // TODO: Add your specialized creation code here
// 创建FALSH窗口
if (!m_ShockwaveFlash.Create("MyFlash", WS_CHILD | WS_VISIBLE, CRect(0, 0, rc.right, rc.bottom), this, 102))
{
CString str;
str.Format("%d", GetLastError());
AfxMessageBox(str);
} return 0;
}