惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

B
Blog RSS Feed
J
Java Code Geeks
C
Check Point Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Google DeepMind News
Google DeepMind News
阮一峰的网络日志
阮一峰的网络日志
Engineering at Meta
Engineering at Meta
Blog — PlanetScale
Blog — PlanetScale
D
Docker
H
Hackread – Cybersecurity News, Data Breaches, AI and More
月光博客
月光博客
I
InfoQ
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
A
About on SuperTechFans
L
LangChain Blog
腾讯CDC
Y
Y Combinator Blog
MongoDB | Blog
MongoDB | Blog
Vercel News
Vercel News
MyScale Blog
MyScale Blog
博客园 - Franky
IT之家
IT之家
博客园_首页

博客园 - Easoney

sqlite management tool zz some JQeury code zz Microsoft Chart Controls for Microsoft .NET Framework 3.5 zz IronPython 的一些资料 add column for a table if this column not exists using T-SQL in SQLServer zz JQuery 插件 - Easoney good articles about ASP.NET ViewState zz IE对话框 - Easoney - 博客园 解决win2003安装exchangeServer后关机慢的方法 SQL Server 2005 : 清空数据库日志 (zz) zz web ContentType 大全 如何配置 SQL Server 2005 以允许远程连接 Configure Spring.net under IIS7 常用JS技巧(转) 开始学习RoR 2008, here you come New project, new challenge PIManager 1.2 beta3 release Trac crash with SVN 1.4.5
C# 引用FlashPlayer ActiveX 控件后判断其版本号
Easoney · 2009-05-18 · via 博客园 - Easoney

最近的一个C/S架构的项目中,Client端使用了ActionScript3编写的Flash和WinForm进行双向交互,

需要判断客户端的FlashPlayer版本,主版本号必须大于等于9,否则提示用户安装最新的FlashPlayer10,

使用以下代码即可通过Form窗体中的FalshPlayer 引用变量来获取版本号:

 string flashPlayerVersion = axShockwaveFlash.GetVariable("$version");
 
string majorVersion = flashPlayerVersion.Split(new string [] { "," }, StringSplitOptions.RemoveEmptyEntries)[0].Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries)[1];

if(int.Parse(majorVersion.Trim()) > 9)
{
                InstallFlashPlayer();
}

 

在我的机器上是  “WIN 10,0,22,87”