I have an MFC activeX which uses F-In-Box flash player.
My problem is when I try to instanciate 2 activeX
Code: Select all
<OBJECT id=FPlayer1 style="LEFT: 0px; WIDTH: 50%; POSITION: absolute; TOP: 0px; HEIGHT: 50%" classid="CLSID:12345678-9ABC-DEFG-HIJK-LMOPKRSTUVWX" VIEWASTEXT>
</OBJECT>
<OBJECT id=FPlayer2 style="LEFT: 0px; WIDTH: 50%; POSITION: absolute; TOP: 0px; HEIGHT: 50%" classid="CLSID:12345678-9ABC-DEFG-HIJK-LMOPKRSTUVWX" VIEWASTEXT>
</OBJECT>
In my Init function, i got failure for RegisterFlashWindowClass().
Due this failure I was enabled to load a flash movie for the second ActiveX.
Code: Select all
SHORT CMyFlashCtrl::Init(void)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
if (!FPCIsFlashInstalled()) {
AfxMessageBox(_T("The application needs Flash\nFlash is not installed"));
return -1;
}
if (!RegisterFlashWindowClass()) {
AfxMessageBox(_T("RegisterFlashWindowClass() failed"));
return -1;
}
RECT rect;
GetClientRect(&rect);
m_hwndFlashPlayerControl= ::CreateWindow( WC_FLASH, NULL , WS_CHILD | WS_VISIBLE,
rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top,
m_hWnd, NULL, NULL, NULL );
return 0;
}
Do you have any ideas to resolve this kind of problem ?
Thanks in advance.