Quick links:
F-IN-BOX DLL Edition Home Page
| Buy license
| Welcome to our forum!
| Ask your question
| Help on the Web
F-IN-BOX DLL Edition Help >> Native Flash ActiveX Interface >> Methods GetVariable
Description
Returns the value of the Flash variable specified by name. Raises an exception error if the variable does not exist.
Message
[ C++ ]
FPCM_GETVARIABLE Structure
[ C++ ]
struct SFPCGetVariable { // [in] struct { LPCTSTR lpszBuffer; } name; // [in, out] struct { LPCTSTR lpszBuffer; DWORD dwBufferSize; } Result; // [out] HRESULT hr; }; Example
[ C++ ]
void InvokeGetVariable(HWND hwndFlashPlayerControl, LPCTSTR name) { SFPCGetVariable info; info.name.lpszBuffer = name; info.Result.lpszBuffer = NULL; ::SendMessage(hwndFlashPlayerControl, FPCM_GETVARIABLE, 0, (LPARAM)&info); if FAILED(info.hr) // Error { return; } info.Result.lpszBuffer = (TCHAR*)LocalAlloc(LPTR, info.Result.dwBufferSize * sizeof(TCHAR)); ::SendMessage(hwndFlashPlayerControl, FPCM_GETVARIABLE, 0, (LPARAM)&info); if FAILED(info.hr) // Error { // ... } else // OK { ::MessageBox(NULL, info.Result.lpszBuffer, _T("Result"), MB_OK); } LocalFree((HLOCAL)info.Result.lpszBuffer); } Flash versions
3: supported
4: supported 5: supported 6: supported 7: supported 8: supported 9: supported Copyright © Softanics. All rights reserved. F-IN-BOX is a trademark of Softanics. Macromedia and Shockwave Flash are trademarks of Adobe
Quick links:
F-IN-BOX DLL Edition Home Page
| Buy license
| Welcome to our forum!
| Ask your question
| Help on the Web
|