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

推荐订阅源

V
Visual Studio Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 聂微东
博客园 - 【当耐特】
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
C
Check Point Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
美团技术团队
WordPress大学
WordPress大学
Last Week in AI
Last Week in AI
Y
Y Combinator Blog
IT之家
IT之家
T
Tailwind CSS Blog
月光博客
月光博客
Vercel News
Vercel News
V
V2EX
Engineering at Meta
Engineering at Meta
B
Blog
Stack Overflow Blog
Stack Overflow Blog
A
About on SuperTechFans
Hugging Face - Blog
Hugging Face - Blog
人人都是产品经理
人人都是产品经理
腾讯CDC
I
InfoQ

博客园 - 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”