Posted on 2009-09-06 15:46
S.l.e!ep.¢% 阅读(369)
评论(0) 编辑 收藏 引用 所属分类:
COM
#include <iostream>
using namespace std;
#include <windows.h>
#include <atlbase.h>
#include "flash.h"
void main()
{
CoInitialize(NULL);
CLSID clsid;
CLSIDFromProgID(OLESTR("ShockwaveFlash.ShockwaveFlash"),&clsid);
CComPtr<IShockwaveFlash> pGetRes;
pGetRes.CoCreateInstance(clsid);
long nVersion = 0;
pGetRes->raw_FlashVersion(&nVersion);
pGetRes.Release();
CoUninitialize();
}