本文整理自网络,侵删。
delphi如何判断系统是否安装了flash插件
方法1:
uses comobj;
procedure TForm1.Button1Click(Sender: TObject);
var
v:variant;
begin
v:=CreateOleObject('ShockwaveFlash.ShockwaveFlash');
if not VarIsNull(v)
then showmessage('安装的FLASH控件')
else showmessage('没有安装的FLASH控件'');
end;
方法2:
uses ActiveX;
var
AGUID: TGUID;
if not Succeeded(CLSIDFromProgID('ShockwaveFlash.ShockwaveFlash', AGUID)) then
//没安装 相关阅读 >>
Delphi xe berlin readprocessmemory writeprocessmemory
Delphi xe7 的 android bitmap转jpg图的参数问题
Delphi的initialization和finalization
Delphi编写的android程序获取root权限实现(2015.4.15更新,支持android 4.4)
更多相关阅读请进入《Delphi》频道 >>