activex

Wrapping a Delphi TFrame descendant as an ActiveX control

本小妞迷上赌 提交于 2019-12-21 05:51:49
问题 I am trying to wrap up a TFrame descendant as an ActiveX control, but don't seem to be able to get the control to show up in the ActiveX Control wizard. Is this approach possible, and if so, are there any working examples that I can be pointed at. I have tried to follow the instructions here, but as I said the control show in the list of available controls. Thanks in advance. 回答1: @Mmarquee, the easy way to do this is use an Activeform , this is an ActiveX control that encapsulates a Delphi

How to Install a COM using ClickOnce

别来无恙 提交于 2019-12-21 05:38:13
问题 I have installed my windows application that uses TeeChart ActiveX (a COM Component for charting) using ClickOnce. If I register manually TeeChart using regsvr32 teechart8.ocx, my application works fine. But I want and I need to install the application using ClickOnce. How can I do that? 回答1: ClickOnce can only copy files. So you have these options: Use Reg-Free COM as Jeff Hall suggests. This is probably the best option if you can do it. Run regsvr32 manually when your .exe file first loads

How can one detect copying a link in a browser?

送分小仙女□ 提交于 2019-12-21 03:51:43
问题 Yesterday I had a chat with a taxi driver and upon mentioning that I am a programmer, he told me that a couple of days earlier he had experienced the following: upon trying to copy the URL from the address bar of his browser, a messagebox appeared with a message like "Please don't copy this link, rather register" . I am not a web developer, so this might be a lame question :-) but I wonder how such a thing is accomplished? What technology or language gives one this level of control over the

COM / OLE / ActiveX / IDispatch confusion

和自甴很熟 提交于 2019-12-20 14:10:31
问题 I can't wrap my head around the differences among these terms. Are COM and ActiveX synonyms? Is ActiveX object just a COM object that exposes IDispatch? Lots of older MSDN pages mention IDispatch without any COM context. Does it have a separate history, and was just introduced under the COM 'umbrella' later in its lifecycle? Where does OLE fit in? Is its (considerable) presence in MFC naming and MSDN in general - all just legacy? Wikipedia gives some insight, but not much. I couldn't find a

Access memory address in c#

ぐ巨炮叔叔 提交于 2019-12-20 10:55:28
问题 I am interfacing with an ActiveX component that gives me a memory address and the number of bytes. How can I write a C# program that will access the bytes starting at a given memory address? Is there a way to do it natively, or am I going to have to interface to C++? Does the ActiveX component and my program share the same memory/address space? 回答1: I highly suggest you use an IntPtr and Marshal.Copy. Here is some code to get you started. memAddr is the memory address you are given, and

Using “FSO” in Javascript, how to write a variables's content to a file? [duplicate]

[亡魂溺海] 提交于 2019-12-20 07:51:03
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: how to write a variables's content to a file in JavaScript I have this piece of code to create a text file. How can I write to this text file? function makefile() { var fso; var thefile; fso = new ActiveXObject("Scripting.FileSystemObject"); thefile=fso.CreateTextFile("C:\\tmp\\MyFile.txt",true); thefile.close() } 回答1: Here's one way: makefile(); function makefile () { var fso = new ActiveXObject("Scripting

Sometimes the ActiveX Combobox only shows one row, why?

只愿长相守 提交于 2019-12-20 06:07:55
问题 It seems that when I first click on the combobox and then click on the arrow, all items are displayed. While if I click on the arrow without clicking on the combobox before, only one item is displayed and I can click on scroll buttons to see the other items. Why does this happen? Here is the macro I am using to populate the combobox with items Private Sub ComboBox1_GotFocus() Dim c As Range Dim selText As String selText = ComboBox1.selText ComboBox1.Clear For Each c In wConfig.Range(

Sometimes the ActiveX Combobox only shows one row, why?

百般思念 提交于 2019-12-20 06:06:29
问题 It seems that when I first click on the combobox and then click on the arrow, all items are displayed. While if I click on the arrow without clicking on the combobox before, only one item is displayed and I can click on scroll buttons to see the other items. Why does this happen? Here is the macro I am using to populate the combobox with items Private Sub ComboBox1_GotFocus() Dim c As Range Dim selText As String selText = ComboBox1.selText ComboBox1.Clear For Each c In wConfig.Range(

Loading and Passing JScript Arrays from/to C# (not C) COM Component

*爱你&永不变心* 提交于 2019-12-20 05:21:26
问题 I have looked at tutorials on jscript arrays, but not seeing it yet. I saw something similar asked but involving Win32 code not .NET. Wondering, how do I pass arrays back and forth between JScript and a C# COM component? For example, I have two properties defined in my C# COM that returns string and integer arrays as: string[] HeaderLines { get; set; } int[] ImagePixels { get; set; } In my test.js file: ... var T = new ActiveXObject("Imager.Reader"); ... var headerLines = T.HeaderLines;

Loading and Passing JScript Arrays from/to C# (not C) COM Component

你说的曾经没有我的故事 提交于 2019-12-20 05:21:14
问题 I have looked at tutorials on jscript arrays, but not seeing it yet. I saw something similar asked but involving Win32 code not .NET. Wondering, how do I pass arrays back and forth between JScript and a C# COM component? For example, I have two properties defined in my C# COM that returns string and integer arrays as: string[] HeaderLines { get; set; } int[] ImagePixels { get; set; } In my test.js file: ... var T = new ActiveXObject("Imager.Reader"); ... var headerLines = T.HeaderLines;