activex

activex in winform

我怕爱的太早我们不能终老 提交于 2019-12-06 04:35:36
I need to put some activeX in my .Net WinForm. The provider had sent me a .tlb and the com .dll. Is this enough? How do I put it on winform? That should be sufficent. You'll need to register that dll on your machine, add it to the dev studio Toolbox (Right click on the toolbox/Choose Items) and go to the COM tab, if you can't find it in there you can browse to the specific location and select the Type Library to use. After that you can just drag the new control to your form. A Reference to the library will be added to your project automatically. see " Adding ActiveX Controls to Windows Forms "

How to make COM ActiveX object work in IE 64 bit?

我与影子孤独终老i 提交于 2019-12-06 04:14:47
I have a COM object embeded in ASP.NET page using <object classid="clsid:XXX..."> . It works in IE 32 bit, but does not work in IE 64 bit - can't access its functions. There are no error messages, no event logs where I can get some information. The dll is in C#, includes COM visible class, compiled for Any CPU (though I also tried x86), and registered during client installation by executing regasm. This creates registry keys, well everything works fine except for IE 64. I searched internet about the issue or at least some guidlines and didn't find anything. I received an answer on another

Is it REALLY an activex control?

隐身守侯 提交于 2019-12-06 04:10:38
I have a fairly simple block of code. Sub Run(Name) on error resume next Set objShell = CreateObject("WScript.Shell") if Err.Number = 429 then alert("Invalid Security Level.") exit sub end if objShell.Run Name if Err.Number <> 0 then Alert("Please verify your Operating System Choice") end if Set objShell = Nothing End Sub I'm using this with links on the website to allow the user to defrag their hard drive via: <a href="#" onclick="Run('c:\\windows\\system32\\dfrgui.exe')">Defrag Windows Vista</a><br> <a href="#" onclick="Run('c:\\windows\\system32\\dfrg.msc')">Defrag Windows Server 2003 SE or

How to create ActiveX DLL in Visual C++

时光毁灭记忆、已成空白 提交于 2019-12-06 03:36:00
问题 Is there a tutorial/reference for creating an ActiveX DLL in Visual Studio 2008 C++ ? I've got a DLL built with the DLLRegisterServer/UnregisterServer, and it's registered, but I'm having a little trouble figuring out what name to use to reference it (from a vbscript) and how to make sure my functions are exported correctly. Do I have to put my functions in a special class? Thanks! 回答1: There are a lot of details to get right. Best thing to do is to use ATL and the built-in ATL object wizard.

How do I call a method in a custom ActiveX dll using java/vb script

久未见 提交于 2019-12-06 02:59:48
问题 I have created an ActiveX dll using VB6 and packaged it using the Package & Deployment Wizard which has resulted in a cab file and a demo HTML page. This ActiveX dll contains a simgle method that returns a string and accepts no arguments. The trouble I'm having is that when I call the method I always get a "Object does not support this property or method" error. But it does support the method I'm calling. What I'm trying to achieve is for users to go to a web page that has some java or vb

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

删除回忆录丶 提交于 2019-12-06 01:33:47
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) 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_CURRENT_USER instead of HKEY_LOCAL_MACHINE. Depending on what your activex control is written in this may be

How to get an ActiveX component's registered path

自古美人都是妖i 提交于 2019-12-06 01:14:17
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. Andrey Search under the HKEY_CLASSES_ROOT\CLSID with the name of your EXE file. It should be used as value of "LocalServer32". Here's a function that fetches the value out of the Registry. Extra validation required. using Microsoft.Win32; //... static string

Triggering C# dll using Javascript ActiveX Object

雨燕双飞 提交于 2019-12-06 00:34:18
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-C7E645024C32"), ProgId("csharpAx.CHello"), ClassInterface(ClassInterfaceType.None), ComDefaultInterface

QTP Cannot Create ActiveX Object

北慕城南 提交于 2019-12-06 00:13:55
While working on script, I am facing this issue. I can't post the whole code but this is a sample that does the samething that I wrote myself; Dim qtpApp Set qtpApp = createObject("QuickTest.Application") qtpApp.Launch I have also tried this: Set qtpApp = createObject("QuickTest.application") And This: Set qtpApp = createObject("Quick Test.Application") But I Keep Getting "Active X Component cant create object. on Line x: "Set qtpApp = createObject("QuickTest.Application")" Any help appreciated. Thanks. The correct prog-id is the one you tried first "QuickTest.Application" . The probable cause

AccessViolation exception when form with AxWindowsMediaPlayer closed

纵饮孤独 提交于 2019-12-05 23:59:32
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. 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 key event to process. Example with Form.KeyPreview = True Sub Form_KeyDown(e As KeyEventArgs)