ocx

如何判断IE OCX插件正常安装?

∥☆過路亽.° 提交于 2019-12-01 12:16:57
项目中用到了一个第三方的 ie ocx 控件,而经常遇到客户和测试小伙伴反馈相关功能无法正常使用,也没有友好提示。考虑到这个问题,必须要有一个 ie ocx 控件的检查机制。 检查原理 创建 ActiveXObject 对象去检查 ocx 控件 let newObj = new ActiveXObject(servername, typename[, location]) 参数问题 看起来很简单的,但是用起来我懵逼了,应用程序对象名称 servername 这个参数怎么填呢? 插件供应商只提供了控件安装包,示例程序, clsid <object id="NetVideo" classid="clsid:27E1A157-6A29-48AE-86C2-14591D90B4D4"></object> 于是我想应该可以从 clsid 入手研究。 什么是clsid class identifier(类标识符)也称为CLASSID或CLSID,是与某一个类对象相联系的唯一标记(UUID)。一个准备创建多个对象的类对象应将其CLSID注册到系统注册数据库的任务表中,以使客户能够定位并装载与该对象有关的可执行代码。 以上摘自百度百科,可以看到 clsid 跟 uuid 是类似的原理,用来进行插件的唯一标识。 根据clsid怎么查到servername 在 MDN 上搜索

JavaBeans ActiveX Bridge for Java 8?

二次信任 提交于 2019-12-01 11:14:51
There used to be a JavaBeans ActiveX Bridge but AFAIK this is no longer supported under Java 8. I want to call my JavaBeans from Excel, so what is the way to go with Java 8? The problem is I have some legacy JavaBean packaged in a dll that I use from Excel VBA. I don't have the source code to this bean. But I still want to use it with Java 8/9. Is this possible? I solved the problem using Obba : I read the Java bean with a Java parser and generated a VBA wrapper method for each Java method that I want to call. The wrapper calls the original Java method using Obba. I created a VBA class

JavaBeans ActiveX Bridge for Java 8?

▼魔方 西西 提交于 2019-12-01 09:24:47
问题 There used to be a JavaBeans ActiveX Bridge but AFAIK this is no longer supported under Java 8. I want to call my JavaBeans from Excel, so what is the way to go with Java 8? The problem is I have some legacy JavaBean packaged in a dll that I use from Excel VBA. I don't have the source code to this bean. But I still want to use it with Java 8/9. Is this possible? 回答1: I solved the problem using Obba: I read the Java bean with a Java parser and generated a VBA wrapper method for each Java

How do I resolve “Run-time error '429': ActiveX component can't create object”?

↘锁芯ラ 提交于 2019-12-01 03:01:56
My company has a VB6 application using Crystal Reports 7 which a client has asked to be installed on Windows 7 32 bit. It is currently installed on Windows XP 32bit SP2 machines at the client. Connection to the DB is done via ODBC to SQL Server 2000 instance on another server. On Windows 7, the installation works fine, however when you try to open the application, the error is given. I have looked at the following: Registering all the dll's and ocx files using regsvr32. Some will not register as they either are registered already or the following message is given "Make sure that "[name].dll"

Use OCX without registering it

自古美人都是妖i 提交于 2019-11-29 20:18:46
Is it possible to use an ocx (ActiveX Control) on a winform (probably adding it programatically) without first having the ocx registered with regsrv32? What I'm trying to achieve is to enable xcopy installation. I've had the "AxInterop. .dll" and "Interop. .dll" file generated from my dev machine. I've seen the possibility of calling a COM dll without first registering it ( ProSysLib , according to the author, but I haven't tested it yet), since ocx is also COM based, thus I assume that there must be some way to do that as well. Yes, this can be done. You must assume your application will only

如何在程序中执行动态生成的Delphi代码

烂漫一生 提交于 2019-11-29 04:42:56
如何在程序中执行动态生成的Delphi代码 经常发现有人提这类问题,或者提问内容最后归结成这种问题 前些阵子有位高手写了一个“执行动态生成的代码”,这是真正的高手,我没那种功力,我只会投机取巧。 这里提供三种方法,都是借助第三方的组件来实现的。 1、MicroSoft Windows Script Control(http://www.microsoft.com/downloads/details.aspx?FamilyID=d7e31492-2595-49e6-8c02-1426fec693ac&DisplayLang=en) 这是微软的东西,OCX的,我对OCX的东西一向没什么好感,:)但总算是解决问题的一个方法。 到以上地址下载回来sct10en.exe,这是个安装程序,安装完成以后,在安装目录里有一个msscript.ocx,就是它了。 在Delphi中Import OCX...导入安装,在窗体上添加一个TScriptControl类的实例。 设置好它的Scriptanguage属性:VBScript,JScript...IE认识的它都认识,没有Object Pascal?不要急,好戏总是放在后头嘛... 以VbScript为例: 运行脚本:ScriptControl1.ExecuteStatement('msgbox("Runing....")'); 计算公式

Need PDF viewer control - tried a lot [closed]

二次信任 提交于 2019-11-28 20:47:07
I'm looking for a component to view and print PDF files from Delphi/C++Builder. Delphi or ActiveX, not .NET. The license must be for royalty free distribution and the viewer must not require Adobe Reader to be installed. So far I have tried: Gnostice PDFtoolkit: Display problems with JPX images Radaee PDF Viewer: Fast rendering, but crashes. NO reply from support. VeryPDF: Slow rendering, but reliable. No printing WPViewPDF: Messed up layout of most PDFs GdViewer: No continuous multi-page display QuickPDF library: No continuous multi-page display eXPert PDF Viewer: Use not allowed for generic

Use OCX without registering it

拥有回忆 提交于 2019-11-28 16:18:28
问题 Is it possible to use an ocx (ActiveX Control) on a winform (probably adding it programatically) without first having the ocx registered with regsrv32? What I'm trying to achieve is to enable xcopy installation. I've had the "AxInterop. .dll" and "Interop. .dll" file generated from my dev machine. I've seen the possibility of calling a COM dll without first registering it (ProSysLib, according to the author, but I haven't tested it yet), since ocx is also COM based, thus I assume that there

Using a DLL With PHP for Dummies

血红的双手。 提交于 2019-11-28 05:59:59
I have a project that needs to access a DLL with PHP. The server is a Windows machine and the Apache server is provided by XAMPP. I read multiple answers on the web like Use DLL in PHP? php communication with dll? calling dll through php http://ca.php.net/manual/en/class.com.php http://ca2.php.net/manual/en/book.w32api.php http://www.talkphp.com/absolute-beginners/3340-php-how-load-com-dll-file.html Here is how I call the DLL in HTA / Javascript : <object style="display:none" id="SOME_ID" classid="clsid:SOME_CLASS_ID" codebase="./somePath.dll"></object> Does someone have a working example?

How to use AutoItX in .NET (C#) without registering

主宰稳场 提交于 2019-11-28 04:23:58
How do I use AutoitX ( OCX / ActiveX library) in a .NET C# application without registering it? I would like to create an application with it without need to use administrator rights for installation. I found some pages on MSDN like, Registration-Free Activation of COM Components: A Walkthrough about creating manifest files for DLL files. I tried it and did not succeed. So maybe it is possible and I created it wrongly. Unfortunately I lost the XML files so I can't post it here. I also tried setting isolated and enable interop types in reference properties without success. Is it possible to get