F-IN-BOX DLL Edition Help >> Extensions >> Functions

FPC_GetVersionEx

Syntax

[ C++ ]
DWORD WINAPI FPC_GetVersionEx(HFPC hFPC, SFPCVersion* pVersion);

typedef struct SFPCVersion
{
	WORD v[4];
} SFPCVersion;

Description

Returns flash version.

Example:

[ C++ ]
// Get flash version        
SFPCVersion FlashVersion;
FPC_GetVersionEx(m_hFPC, &FlashVersion);

// Compare major version
if (FlashVersion.v[3] < 8)
{
    TCHAR szMsg[1024];
    wsprintf(szMsg, 
            _T("External API is supported only by Flash 8 and higher\nCurrent version: %d.%d.%d.%d"), 
            FlashVersion.v[3], 
            FlashVersion.v[2], 
            FlashVersion.v[1], 
            FlashVersion.v[0]);

    AfxMessageBox(szMsg);

    return FALSE;
}


Copyright © Softanics. All rights reserved.
F-IN-BOX is a trademark of Softanics.
Macromedia and Shockwave Flash are trademarks of Adobe