activex

How can I make my application check if Adobe flash player is installed on a PC?

北慕城南 提交于 2019-12-02 03:51:16
问题 My application needs Adobe Flash Player to function properly and I need it to check whether it's installed or not. So how can I make my application check if Adobe flash player is installed on a PC? My program is written in C# 回答1: Check if this registry key exists: \HKEY_LOCAL_MACHINE\SOFTWARE\Macromedia\FlashPlayer Then, you can check the installed version (if installed) from here: \HKEY_LOCAL_MACHINE\SOFTWARE\Macromedia\FlashPlayer\CurrentVersion Here you can find code on how to check

Parse html file using MSHTML in VBScript

怎甘沉沦 提交于 2019-12-02 02:09:23
问题 I'd like to load a string as an html file using MSHTML in VBScript and parse it. I can do this with "InternetExplorer.application" but I'd like to do it with "htmlfile" (MSHTML.HTMLDocument) The following code: Set h = CreateObject("htmlfile") h.body.innerHTML = "html goes here" gives this error: Microsoft VBScript runtime error: Object required: 'body' How do I load the html string? 回答1: Probably cheating, but seems to work: Dim oHF : Set oHF = CreateObject("HTMLFILE") oHF.write "<html><body

How can I make my application check if Adobe flash player is installed on a PC?

自作多情 提交于 2019-12-02 01:39:34
My application needs Adobe Flash Player to function properly and I need it to check whether it's installed or not. So how can I make my application check if Adobe flash player is installed on a PC? My program is written in C# Check if this registry key exists: \HKEY_LOCAL_MACHINE\SOFTWARE\Macromedia\FlashPlayer Then, you can check the installed version (if installed) from here: \HKEY_LOCAL_MACHINE\SOFTWARE\Macromedia\FlashPlayer\CurrentVersion Here you can find code on how to check existence of registry key. Following code return current version string of flash. private string

MATLAB ActiveX optional arguments

与世无争的帅哥 提交于 2019-12-01 23:24:56
问题 there is an ActiveX function, which I want to call from MATLAB, e.g. PrintOut([Background], [Append], [Range], [OutputFileName], [From], [To], [Item], [Copies], [Pages], [PageType], [PrintToFile], [Collate], [FileName], [ActivePrinterMacGX], [ManualDuplexPrint], [PrintZoomColumn], [PrintZoomRow], [PrintZoomPaperWidth], [PrintZoomPaperHeight]) and use it like follows : hdlActiveX = actxserver('Word.Application'); hdlActiveX.PrintOut(opt args, needed args, opt opts, needed args); All arguments

delphi开发activex控件的心得

 ̄綄美尐妖づ 提交于 2019-12-01 22:18:54
delphi开发activex控件 2009-01-12 12:18:01| 分类: delphi | 标签: |举报 |字号大中小 订阅 用Delphi开发OCX的心得 最近在做的一个B/S系统要在客户端读取USB锁的要求,所以就需要写一个OCX来验证。原来也没有做过,所以 折腾了好几天,总算有点眉目了,所以把心得写下,交流下。 首先要弄明白你要写的OCX是用在客户端还是用在服务器端 假如用在客户端: 1、创建 打开delphi 7,选择菜单“new”->“other”->“activex”->“active form”->输入项目名称, 系统自动给你创建了3个文件,一个是项目文件,一个是form的单元文件,还有一个后缀带TLB 的文件。这三个文件中的你只需要更改form的单元文件,项目文件一般不需要写什么,TLB文件 有系统自动维护。 2、增加接口函数 所谓接口函数就是调用OCX的程序可以直接调用的函数,如果你要写的函数不提供 外部函数可以按常规声明就可以。但要声明接口函数则必须按步骤声明,有两种途径,其一:选择form 单元文件,然后点击“edit”->“add to interface”,弹出一个对话框,输入要声明的函数,如:function fun:integer; 其二:选择form单位文件,然后点击“view”->“Type Library”,弹出一个对话框

MATLAB ActiveX optional arguments

走远了吗. 提交于 2019-12-01 21:10:10
there is an ActiveX function, which I want to call from MATLAB, e.g. PrintOut([Background], [Append], [Range], [OutputFileName], [From], [To], [Item], [Copies], [Pages], [PageType], [PrintToFile], [Collate], [FileName], [ActivePrinterMacGX], [ManualDuplexPrint], [PrintZoomColumn], [PrintZoomRow], [PrintZoomPaperWidth], [PrintZoomPaperHeight]) and use it like follows : hdlActiveX = actxserver('Word.Application'); hdlActiveX.PrintOut(opt args, needed args, opt opts, needed args); All arguments in the PrintOut function call are optional arguments. However, for a particular case, I need to specify

MS-access doesn't catch treeview events after win sec-update

与世无争的帅哥 提交于 2019-12-01 20:54:16
问题 Access 2010-application using TreeView (MSComctlLib.TreeCtrl.2) shows and populates as expected but suddenly after windows security patches doesn't fire events back to VBA. Tried with rolling back MSCOMCTL.OCX in /syswow64, but no luck. Please ping any similar behaviour or hints for fixing the issue. regards, 回答1: The problem appears to be that the registry entries for mscomctl.ocx are broken after the security update. One solution can be found in this KB article. It suggests to run this

How to prevent ActiveX events firing in VBA?

别来无恙 提交于 2019-12-01 20:41:33
问题 I am searching for a better way to disable ActiveX events from triggering in an Excel workbook (though this would apply to all Office apps with ActiveX objects). Hopefully something similar to Application.EnableEvents = false , though this does not work with ActiveX. In the below example it's trivial to use a global boolean but I have a lot of event handlers for my ActiveX objects and it would be immensely easier for something I could universally apply to temporarily disable ActiveX events. I

Issue with .cab file (ActiveX) installation on Windows Vista and 7

给你一囗甜甜゛ 提交于 2019-12-01 20:30:47
I have made an ActiveX control and have made its .cab file for automatic installation on client machine using Internet Explorer.. It working fine of Windows XP, but on windows Vista and Windows 7 its installation is blocked by UAC (User account control), and when I disable it, all things works fine... I have signed my .cab file with a certificate for development enviornment... What is the way to over come this problem.. I don't want to tell users to disable their UAC module... Most likely this is because you're trying to register your control in HKEY_LOCAL_MACHINE, which is the default in ATL.

How to Set ActiveX Control Name

家住魔仙堡 提交于 2019-12-01 17:46:47
I have an ActiveX control and have signed it with a test certificate every this is working fine but problem is that My internet explorer shows an ugly message The website wants to run following add-on: 'Not Available' from 'Control name is not available', If you trust the website and the add-on and want to allow it to run, click here.... Why the control name is not available? I have made this ActiveX control in C# and have added the attribute ComVisible to my assemblyInfo.cs, here is the code using System.Reflection; using System.Runtime.CompilerServices; using System.Security.Permissions;