tmillhouse@gmail.com wrote:Is there a good example somewhere loading a SWF file?
Load it as you tried before. If a movie comes from URL, one should use FPC_LoadMovie.
tmillhouse@gmail.com wrote:Is there a good example somewhere loading a SWF file?
tmillhouse@gmail.com wrote:So load it using using FPC_LoadMovie from within a different Thread?
Code: Select all
FPC_LoadRegisteredOCX(...);
FPC_CreateWindow(...);
FPC_LoadMovie(...);
// The message cycle; flash needs it
MSG msg;
BOOL bRet;
while( (bRet = GetMessage( &msg, NULL, 0, 0 )) != 0)
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
tmillhouse@gmail.com wrote:I'm currently testing using the externalinterface.swf that came in the sample code, and I'm calling it as the sample code does.
Code: Select all
BSTR bstrRequest = SysAllocString(L"<invoke name="CallMeFromApplication" returntype="xml"><arguments><string>Some text for FlashPlayerControl</string></arguments></invoke>");
BSTR bstrResponse;
if (S_OK ==
FPCCallFunctionBSTR(m_hwndFlashPlayerControl,
bstrRequest,
&bstrResponse))
{
...
}
tmillhouse@gmail.com wrote:actually, I just put an '&' in front of hwndFlashPlayerControl and it now equals S_OK. Now let me figure out how to convert BSTR into something I can output to windows debugger. I can't use the <atlconv.h> b/c its not included w/ my compiler
Code: Select all
OutputDebugStringW(L"%s\n", bstrResponse);
tmillhouse@gmail.com wrote:actually, I just put an '&' in front of hwndFlashPlayerControl
Code: Select all
FPCCallFunctionBSTR(&m_hwndFlashPlayerControl,
Users browsing this forum: No registered users and 149 guests