activex

How can I check if an ActiveX dll is already registered?

ぃ、小莉子 提交于 2019-12-07 14:50:00
问题 I have an installer that is registering several dll's and need to know if this was successful. 回答1: This seems to do the trick for me: http://www.nirsoft.net/utils/registered_dll_view.html 回答2: I would like to let you know all registered COM class objects are listed under HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\. We can navigate to this location in registry editor, highlight CLSID and press Ctrl+F to search the dll/ocx file. 来源: https://stackoverflow.com/questions/1510171/how-can-i-check-if

Triggering C# dll using Javascript ActiveX Object

佐手、 提交于 2019-12-07 13:32:19
问题 I have a c# class library which I need to call using Javascript. Below is the code of C# class. using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; using System.Windows.Forms; //required for message box. namespace csharp.activex.sample { [Guid("0D53A3E8-E51A-49C7-944E-E72A2064F938"), InterfaceType(ComInterfaceType.InterfaceIsDual), ComVisible(true)] public interface IHello { [DispId(1)] int ShowDialog(); }; [ Guid("873355E1-2D0D-476f-9BEF

How to get an ActiveX component's registered path

你。 提交于 2019-12-07 12:35:19
问题 I've got a registered ActiveX component which I'm referencing in a C# project. However, I'd like to know the original path to the actual component being run. This is not the execution path per se. Is there something saner than searching the registry by hand? The component is registered with a simple /regserver command, if that's relevant. 回答1: Search under the HKEY_CLASSES_ROOT\CLSID with the name of your EXE file. It should be used as value of "LocalServer32". 回答2: Here's a function that

Can you install an ActiveX control in IE without having administrator privileges?

我的未来我决定 提交于 2019-12-07 12:33:37
问题 I'm working on a web app that needs an ActiveX control to function. It installs just fine when the user has admin privileges, but fails to load otherwise. Is this by design and if so, is this documented somewhere? (preferably MSDN) 回答1: Actually, none of these answers are completely correct; if you install an ActiveX control in a per-user basis it will work just fine without Administrative privileges, regardless of the group that the user is in. Bascially this involves installing it to HKEY

How to detect whether a particular software is installed in windows?

喜你入骨 提交于 2019-12-07 12:00:39
问题 I am new to programming. I've been given a virtual conferencing site. Now i need to modify the site. While the user logins into the conferencing site,it must detect whether his system has a particular software installed in his system(that software is used for making video calls.It uses ActiveX objects). Which is the best method to detect the presence of the installed software in the system? (Frankly speaking i don't even know which language best serves the purpose) 回答1: public static bool

MFC创建ActiveX总结

时光总嘲笑我的痴心妄想 提交于 2019-12-07 10:45:42
MFC创建ActiveX控件总结: ActiveX控件主要包括三大部分 1.创建事件 常用事件:主要有一些系统自定义的事件,单双击,keydown等 类视图中右键添加事件,在事件处理函数中添加代码实现事件触发后的功能 自定义事件:事件的参数需要在消息处理函数中赋值,字符串类型 自定义事件产生一个以事件为名的函数,在ctrl类中,在消息处理函数中调用此函数完成自定义事件的调用 事件使用:在消息处理函数中触发事件,比如双击事件,对于控件来说产生双击消息,在双击消息的处理函数中,触发事件。 在将控件添加到测试程序后,右键选择控件属性,添加事件对应的处理函数,在函数中添加你希望在事件触发时进行的操作。 调试: 直接触发事件即可。 2.创建方法 常用方法:只有两个DoClick和Refresh DoClick方法产生Click事件,Refresh方法刷新控件外观 自定义方法:添加自定义方法需要自定义参数,自定义方法内容,参数在该方法时提供, 方法使用:调用方法需要使用控件对象,方法对用户开放,可以作为操作控件的接口,在测试容器中点击紫色的方块选择方法,添加参数进行测试 调试: 3.创建属性 常用属性:已由COleControl实现,直接添加使用即可 一系列添加和自动生成Get和Set函数,可以获得和设置属性值 自定义属性:分为两种成员变量、Get和Set函数

DSOFramer closing Excel doc in another window. If unsaved data in file, dsoframer fails to open with “Attempt to access invalid address”

…衆ロ難τιáo~ 提交于 2019-12-07 08:30:25
问题 I'm using Microsoft's DSOFramer control to allow me to embed an Excel file in my dialog so the user can choose his sheet, then select his range of cells; it's used with an import button on my dialog. The problem is that when I call the DSOFramer's OPEN function, if I have Excel open in another window, it closes the Excel document (but leaves Excel running). If the document it tries to close has unsaved data, I get a dialog boxclosing Excel doc in another window. If unsaved data in file,

Delphi - Thread not executing in ActiveX form - but does elsewhere

怎甘沉沦 提交于 2019-12-07 06:16:52
问题 I have a thread, called TAlertThread. The thread interacts with its owner by triggering events. For example, when certain data is available inside the thread, it sets some temp variables and calls Synchronize(UpdateAlert) which in turn triggers the appropriate event. Now the thread works perfectly in any standard windows application. My problem is when I put that thread inside of an ActiveX form (TActiveForm). The ActiveX control (aka COM object) is then embedded inside of a Windows Desktop

How do I return an array of strings from an ActiveX object to JScript

爷,独闯天下 提交于 2019-12-07 05:19:48
问题 I need to call into a Win32 API to get a series of strings, and I would like to return an array of those strings to JavaScript. This is for script that runs on local machine for administration scripts, not for the web browser. My IDL file for the COM object has the interface that I am calling into as: HRESULT GetArrayOfStrings([out, retval] SAFEARRAY(BSTR) * rgBstrStringArray); The function returns correctly, but the strings are getting 'lost' when they are being assigned to a variable in

How do I add MFC ActiveX control to an existing activex project

我的梦境 提交于 2019-12-07 03:46:30
问题 In visual studio 2008 I can create an MFC activex project and it presents a wizard to create a single activex control. I now want to create new controls within this project. I can't find any way to do this. 回答1: I just found that the templates and scripts to generate the ActiveX control code are located in : Microsoft Visual Studio 9.0\VC\VCWizards\AppWiz\MFC\Control\ There is probably some way to modify that so that it could add a control to an existing project. 回答2: I couldn't find a way to