activex

How to enumerate all ActiveX elements with WMI?

不羁岁月 提交于 2019-12-10 10:31:06
问题 Is it possible to enumerate all (or just enabled) ActiveX elements (*.dll, *.ocx) with WMI script? Motivation: ActiveXHelper 回答1: Scritomatic V2 tool have some sample like that : On Error Resume Next Const wbemFlagReturnImmediately = &h10 Const wbemFlagForwardOnly = &h20 arrComputers = Array("*") For Each strComputer In arrComputers WScript.Echo WScript.Echo "==========================================" WScript.Echo "Computer: " & strComputer WScript.Echo "=====================================

AccessViolation exception when form with AxWindowsMediaPlayer closed

依然范特西╮ 提交于 2019-12-10 10:22:17
问题 I have a AxWMPLib.AxWindowsMediaPlayer on a form. When I close the form, I get "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." exception. It is OK with hiding the form but not with closing. Everything's fine when the component is removed from the form. This is Winforms .Net3.5. Any help appreciated. 回答1: This was happening to me, and it was when closing the form during a key press. Seems the WMP control will cause problems if it has a

ActiveX initialization: AxHost.State object

一笑奈何 提交于 2019-12-10 10:11:27
问题 I'm trying to embed a Unity3D-ActiveX control into a WPF-Form by using a WinFormsHost-Control. Actually it works well when setting the path in the property window of VS, but when setting it in my code file it does not load anything. This is a known issue of the control but i thought i can simply copy the creation code of the forms-designer and initialize it manually. When looking at the code of the initialization i noticed that there is no src property in the code, but the property is used in

Mouse down event timing

て烟熏妆下的殇ゞ 提交于 2019-12-10 09:23:56
问题 I've been asked to code the ability to click on an image in Excel and add a shape on top of it (it's a body diagram for a physiotherapist, the shape will indicate the site of the patient's pain). My code does this OK by using the mouse down event of an ActiveX image control: Private Sub bodypic_MouseDown(ByVal Button As Integer, _ ByVal Shift As Integer, ByVal x As Single, ByVal y As Single) ClickShape x, y End Sub Sub ClickShape(x As Single, y As Single) Dim shp As Shape Dim cursor As Point

GetObject and VB6 ActiveX exe

こ雲淡風輕ζ 提交于 2019-12-10 03:48:58
问题 The VB6 help on GetObject says "You can't use GetObject to obtain a reference to a class created with Visual Basic" (the very last sentence!). My VB6 GUI exposes objects as an ActiveX exe, for other components to manipulate. I want the other components to connect to the GUI that's already running, rather than start a new instance of the exe. I've found using GetObject does work, if you use this syntax: Set myobj = GetObject("", "ProjectName.ClassName") It worries me that the help says this

ActiveX控件嵌入到网页中

丶灬走出姿态 提交于 2019-12-09 21:47:11
一般情况下在Activex中写一个CDialog,尽管是通过ShowWindow接口显示出的窗口,它仍不会嵌入到网页中,而是单独的一个弹窗 解决办法: 在Create窗体的时候,指明父窗口为Activex主窗口即后缀为Ctrl的类对象,并且设置该弹窗的类型style为child即可。 来源: CSDN 作者: 晚餐吃什么 链接: https://blog.csdn.net/Think88666/article/details/103464179

How to convert ActiveX control to NPAPI plugin

邮差的信 提交于 2019-12-09 20:20:58
问题 I have an ActiveX control which is designed to * Search for nearby wireless networks * Create a wireless access point * Manage network adapters I would like this plugin to work in Google Chrome/Firefox. In IE; I can use the following code to embed: <object classid="clsid:33FC4347-8118-4DB5-BFBE-8FCF2C96A997" width="32" height="32" id="thectrl"></object> and I create a wireless network as follows (in JavaScript): thectrl.createNetwork("test",0,null,"NONE",3); The ActiveX has an IDL file, and

Are there alternatives for ActiveX In Microsoft Edge?

孤街醉人 提交于 2019-12-09 18:34:23
问题 Microsoft has announced the Edge browser, which does not support ActiveX. I have an app that needs to get info from the Windows registry, so I have some questions about alternatives to ActiveX: Is there a way to communicate with a native app (that can read from the Windows registry) from Edge or something similar (like native messaging in Chrome)? Is there a way to directly access the Windows registry from Edge, Javascript, or the like? 回答1: Currently I see no way for you to access the

IE 11 can't find Java Plugin to run Applet

拜拜、爱过 提交于 2019-12-09 18:29:57
问题 I have application build with Java Applets, which works fine for Windows 7 with IE 9. Now I'm trying move it to another environment. There is Internet Explorer 11 . To run applet I'm using Oracle Deployment Toolkit Script with latest version taken from https://www.java.com/js/deployJava.txt. But the script doesn't detect Java Plugin . It only redirects to page java.com (suggesting to download latest JRE ). But my browser has Java Plugin installed (here JRE 1.7.80): There are also two SSV

关于在VS环境开发ActiveX控件不能在部分win10或者win8电脑上注册的解决方案

℡╲_俬逩灬. 提交于 2019-12-09 18:14:01
问题描述: VS2008上利用ATL(动态模板库)编写的项目ActiveX控件在部分电脑上可成功注册并运行,但部分电脑上无法注册特别是Win10环境上。 目标: 在Win7、Win8、Win10等环境下成功注册ActiveX控件。 解决方案: 通过对问题的分析,可以发现部分电脑是可以注册的,为什么部分不可以?通过了解后发现能注册的电脑是安装过VS或者安装某些软件时候自动安装了VS运行环境,那么问题可能就是这个。然后针对这个问题进行了三种方案的研究,两种方案验证可行,那么总结出问题就是运行环境问题导致不能注册,下边分别说明和比较: 方案一(存在问题) 既然项目依赖运行库,那么其它插件为什么不需要运行库,因此首先针对项目进行了研究。发现项目编译生成dll文件时,采用的是动态链接运行库文件,因此修改编译属性为静态链接后重新编译运行项目,注册成功。 属性修改方法:项目属性-》配置属性修改“C/C++/Code Generation” -》运行时库,将/MD或/MDd 改为 /MT或/MTd,这样就实现了对VC运行时库的静态链接,在运行时就不再需要VC的dll了。 /MD和/MDd:动态链接库文件,/MD为release版本,/MDd为debug版本。 /MT和/MTd:静态链接库文件,/MT为release版本,/MTd为debug版本。 结论: 经过和项目负责人确认之后