activex

AxAcroPDF - Vista64 Class Not Registered Error

*爱你&永不变心* 提交于 2019-12-05 21:57:15
问题 We have a WinForms application written in C# that uses the AxAcroPDFLib.AxAcroPDF component to load and print a PDF file. Has been working without any problems in Windows XP. I have moved my development environment to Vista 64 bit and now the application will not run (on Vista 64) unless I remove the AxAcroPDF component. I get the following error when the application runs: "System.Runtime.InteropServices.COMException: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E

Can .Net custom controls be used in VB6 form?

a 夏天 提交于 2019-12-05 20:59:50
问题 I am doing some maintenance on a VB6 Windows application. I have a .Net custom control component that I would like to use on a VB6 form. Is this possible? I know how to access non-visual .Net components from VB6 by generating a COM type library for the .Net DLL, but can a .Net custom control be used like a .OCX from VB6? If so, how is the control instantiated in VB6, added to the form, etc. Thanks in advance for any replies. 回答1: The Interop Forms toolkit will give you what you need: http:/

create non visual activex control with delphi

左心房为你撑大大i 提交于 2019-12-05 20:59:21
i was created a nonvisual vcl component in delphi and I'm trying to make it usable for other environment like visual studio, and i think the best way is create an activex control. but the problem is i haven't any experience about creating activex in delphi. i found some resource by google about creating activex in delphi but most of them work on visual controls but my component is non visual... anyway i hope someone help me in clear way to do this. thanks for your time. @cyberw0lf, check this link how to develop activex invisible component library in delphi this is a step by step tutorial to

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

核能气质少年 提交于 2019-12-05 20:41:18
I have an installer that is registering several dll's and need to know if this was successful. This seems to do the trick for me: http://www.nirsoft.net/utils/registered_dll_view.html polesh 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-an-activex-dll-is-already-registered

Why does my application triggers the Installer of another application?

雨燕双飞 提交于 2019-12-05 20:26:53
When using a legacy VB6 application and opening some specific forms inside that application, the Windows Installer belonging to Microsoft Navision (which is installed on the same machine) pops-up like in the attached image. It happens every time, but on this machine only. The VB6 application has absolutely no relation with Navision! What can be done to avoid this anomalous interaction between the two applications? This is down to a corrupt windows installer database and your app is using some component that Microsoft Dynamics tried to install. Your best bet is to remove and reinstall Microsoft

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

别等时光非礼了梦想. 提交于 2019-12-05 16:53:57
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, dsoframer fails to open with a messagebox: Attempt to access invalid address . I built the source, and

Mouse down event timing

邮差的信 提交于 2019-12-05 13:35:11
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 Set shp = ActiveSheet.Shapes.AddShape(msoShapeMathMultiply, x + ActiveSheet.Shapes("bodypic").Left, _ y

Difference between COM DLL and ActiveX control

不打扰是莪最后的温柔 提交于 2019-12-05 12:52:35
问题 Few similarities I know.. Both cannot execute by themself. It needs some program to instantiate it. COM DLL & ActiveX controls are platform independant. (is it so...?) Both requires to support the interface IUnknown and exposes three methods QueryInterface , AddRef , and Release . It also requires to be registered before using and un-registered after done with it. But how are they different? Can someone please list it down? Also my understanding is ActiveX controls are OLE custom controls

Possible to append a ActiveX control to a page using javascript?

半城伤御伤魂 提交于 2019-12-05 12:02:25
I'm trying to append an ActiveX control dynamically to a page using jQuery. The append is successful; however, the control doesn't initialize when it is done this way. I believe IE calls the OnCreate method of an ActiveX control when a page that contains a control has finished rendering. The problem is that the tag is not present on the page until after rendering is finished, so OnCreate is never called. I'm not sure if that's the problem, it's just a guess. Does anyone have experience with this? Is it possible to force IE to call OnCreate at a specific time? The control works fine if the tag

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

﹥>﹥吖頭↗ 提交于 2019-12-05 10:43:09
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 JavaScript. The question is: What is the proper way to get the array of strings returned to a JavaScript