Hi, this is the question.
Im using the flashcontrol inside internet explorer program.
In a toolband.
and when i call
FPCCallFunction
the return code is E_FAIL
so does not work.
any ideas?
more data.
I use your externalfunctionswf. provied by you in the dll example.
when i use your code, inside your project its work, but in my project does not.
This is the code
RegisterFlashWindowClass();
m_hwndFlashPlayerControl=
::CreateWindow(
WC_FLASH,
NULL,
WS_CHILD | WS_VISIBLE,
0,
0,
rect.right,
rect.bottom,
pParentWnd->m_hWnd,
NULL,
NULL,
NULL
);
SFPCPutMovie FPCPutMovie;
FPCPutMovie.lpszBuffer = "c:\\;
::SendMessage(m_hwndFlashPlayerControl, FPCM_PUT_MOVIE, 0, (LPARAM)&FPCPutMovie);
HRESULT hres;
TCHAR szResponse[1024] = { 0 };
DWORD dwLength = sizeof(szResponse) / sizeof(szResponse[0]) - 1;
hres = FPCCallFunction(this->m_hwndFlashPlayerControl,
_T("<invoke name=\"CallMeFromApplication\" returntype=\"xml\"><arguments><string>1</string></arguments></invoke>"),
szResponse,
&dwLength);