activex

Deplhi Import Component - Type Library vs ActiveX

 ̄綄美尐妖づ 提交于 2019-12-11 03:33:02
问题 I am trying to use the "Microsoft Terminal Services Active Client" in Delphi. I see that I can create the COM *.tlb file either via " Import ActiveX control " or " Import Type Library ". They both seem to give the same *.tlb source file. Is there a difference between the two approaches. (Long time Delphi user, but new to COM). 回答1: Delphi Help System says: "The Import Type Library dialog box displays the type libraries registered on your system so you can add them to your projects. If the

How do I programmatically determine if an ActiveX control has been installed, and whether it or ActiveX as a whole has been disabled?

爱⌒轻易说出口 提交于 2019-12-11 03:28:12
问题 I'm using ASP.NET on the server side and JavaScript on the client side. I'm trying to develop some pages that will help the user troubleshoot and I was wondering if there was a way to programmatically determine the following: if ActiveX has been disabled in Internet Explorer if an ActiveX control has been installed if an ActiveX control has been installed but disabled For cases 2 and 3, I know that in order to detect that an ActiveX control is installed, you would use the following check in

How to create an ActiveX button and add code to it (tell it what sub to run) using vba?

落爺英雄遲暮 提交于 2019-12-11 03:19:01
问题 I'd like to create an ActiveX button in a sheet and assign a code to it (i.e. tell it to what sub to run and that sub already exists). I can create the button: (recorded) ActiveSheet.OLEObjects.Add(ClassType:="Forms.CommandButton.1", Link:=False _ , DisplayAsIcon:=False, Left:=41395.5882352941, Top:=234.705882352941, _ Width:=119.117647058824, Height:=39.7058823529412).Select But I'd like to change the caption and assign a sub to it so when someone clicks the newly created activex button it

How to detect that an add-on has been disabled by the user in IE9?

心不动则不痛 提交于 2019-12-11 02:57:10
问题 IE9 users can disable an add-on, such as a browser helper object, by clicking on the cog button and selecting "Manage Add-Ons". I need to detect if a given add-on has been disabled in such way, using JavaScript. I can't seem to find a way for my error handler ( <object ... onerror="myhandler(event)" ) to detect that the BHO has been disabled. errorEvent.type is simply "error" . Is there any way? I need to detect this scenario because just having the webpage try to install the BHO again yields

Print and resize MATLAB figure in Excel

谁说我不能喝 提交于 2019-12-11 02:53:42
问题 I have two figures in MATLAB with the handles hFig1 and hFig2 . I would like to print them to specific cells in Excel (cells E3 and I3) and reshape them to each be [2in x 3in]. I have tried using the .AddPictures object handler and using print -dmeta , but I can't find a way to achieve all three of my objectives. I am also writing data to excel at the same time and because there is a lot of data lines being sent, I was hoping to have a method that didn't require continually invoking excel

How to build a 64-bit .NET DLL, with 64-bit COM interop?

一笑奈何 提交于 2019-12-11 02:44:22
问题 I need to build a managed DLL, targeted for x64, and expose it via x64 COM. I need a walk through, good article, etc... Interop is fairly straightforward, but when you talk about x64 on both sides, I can't find anything. 回答1: Take a look at this discussion. And this. 来源: https://stackoverflow.com/questions/95628/how-to-build-a-64-bit-net-dll-with-64-bit-com-interop

ActiveX Control is running in separate window other than IE

ⅰ亾dé卋堺 提交于 2019-12-11 02:41:16
问题 I have developed an ActiveX Control in C#.NET. I created a class library with a default interface. Given GUID , ProgId and made it COM visible , interoperable. Registered. Created a cab file , then embedded it in HTML page using object tag by specifying it's classid and codebase. Loaded it using JavaScript Method. It is working. But problem is that it runs as a separate window other than Internet explorer. I want it to be loaded inside IE that is as a part of IE window. How to do it? --

How to write Delphi ActiveX control which can be used in MS Word/Excel/Powerpoint?

孤街醉人 提交于 2019-12-11 02:26:01
问题 [ToDo] (1) As indicated from NGLN's helpful answer, using simpler keywords such as "Delphi ActiveX control" to search. (2) Consuming the ActiveX control in Word/Excel/Powerpoint is yet another step. [/ToDo] [Useful links] Writing ActiveX Controls in Master Delphi 7 create non visual activex control with delphi Error Could not load unit [unit] symbol information for [TClassName] ======= Or what books and courses to learn if I want to write in Delphi a well-behaved ActiveX control which can be

C# Vlc ActiveX Play rtsp stream

末鹿安然 提交于 2019-12-11 02:18:19
问题 I have found a problem to embed and playing rtsp stream to VLC activex control. Once i already succeeded but now i cant i dont know why, Im trying to host at WPF a vlc control but its dont work , Its says like a dll is missing , "Failed to import the ActiveX control" I follow after some solutions i found at good but no one helps... I already registered it, and tried more things.. Its has a missing dll on the AxAXVLC dll. And say: Error 1 Compiler errors occurred when generating a Windows

catching exceptions in Javascript thrown from ActiveX control written in C++

南楼画角 提交于 2019-12-11 01:56:09
问题 I've written an ActiveX control in C++ that throws (C++) exceptions out when error conditions occur within the control. The Javascript code that invokes the object representing an instance of the control is surrounded by a try - catch block: try { var controlInstance = window.controlInstance; ... perform operations on controlInstance ... } catch (e) { alert("something bad happened"); } Now, when I run this code under IE8 (or 7 or 6) with a Visual Studio (2008) debugger attached to it,