activex

How to CreateObject in C#?

孤人 提交于 2019-12-03 23:34:05
问题 I want to translate the following VB6 code into C# If optHost(0).Value Then Set m_oScpiAccess = New IcSCPIActiveX.IcSCPIAccess Else sHost = txtHost.Text Set m_oScpiAccess = CreateObject("Exfo.IcSCPIActiveX.IcSCPIAccess", sHost) End If I used TlbImp.exe to create wrappers for the COM classes, and I tried: if (string.IsNullOrEmpty(host)) { // this works IcSCPIAccess = new IcSCPIAccess(); } else { // throws MissingMethodException IcSCPIAccess = (IcSCPIAccess)Activator.CreateInstance( typeof

Wrapping a Delphi TFrame descendant as an ActiveX control

六月ゝ 毕业季﹏ 提交于 2019-12-03 21:57:13
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. RRUZ @Mmarquee, the easy way to do this is use an Activeform , this is an ActiveX control that encapsulates a Delphi form, you can use the @Francois suggestion or the next aproach wich makes easy deploy any standard form

Handling ATL/ActiveX events from within JavaScript

匆匆过客 提交于 2019-12-03 21:46:19
I have an ATL ActiveX control that raises three events (Connected, Authenticated, Disconnected) which need to be handled in IE/JavaScript. So far as I can tell, I'm doing everything right, specifically: (1) I've told ATL to implement the IProviderClassInfo2 interface, as described here . (2) I've implemented connection points within my ATL project by following the directions here . I now have a CProxy_IMyControlEvents class, with the appropriate Fire_Authenticated(), Fire_Connected() and Fire_Disconnected() implementations. They look more-or-less like this: template<class T> class CProxy

How to add Active X component to C# project

可紊 提交于 2019-12-03 21:45:18
问题 I'm creating in a Windows forms application using VS2008. I need to add ActiveX controls to it. But unable to do so. this example is what i try to achieve LINK sub topic "Interop with ActiveX Controls" The following are the steps provided to achieve it, but i cant find the below mentioned options in my Visual studio. (1) When you have a form displayed, right-click the Toolbox and select "Choose Items". (2) Click the "COM Components" tab. (3) Locate your ActiveX control and tick the box for it

Creating digital persona fingerprint template from serialized data

回眸只為那壹抹淺笑 提交于 2019-12-03 21:07:35
This is a very specific question which will probably earn me the tumbleweed badge, but please answer if you can I've imported DigitalPersona sdk dll's as type libraries into Delphi and am trying to verify fingerprints which I've stored as serialized data in a database, it's working very awesomely. Enrollment seems to work fine, but I can't turn the binary data from the finger prints back into DPFPTemplate objects. I keep getting an OLEException every time I try to used the defaultinterface property of a TDPFPTemplate object. What I'm wondering is how Digital Persona expects you to use their

How to Install a COM using ClickOnce

十年热恋 提交于 2019-12-03 20:45:16
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? Orion Edwards 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 (before it tries to access the COM objects) Create a custom clickonce prerequisite package

Is Google Chrome embeddable?

梦想与她 提交于 2019-12-03 18:32:32
问题 I've asked myself if one can embed the google chrome browser engine in an own application. I'm using Delphi 2009. There's an IE ActiveX wrapper component delivered with the IDE. Also, there's a Firefox ActiveX component out there, but it's based on very old code. I'd like to embed the chrome engine. Is there a way to do this? Thanks in advance, David 回答1: Google Chrome is basically WebKit layout engine + nice UI. And WebKit can be embedded. There's also chromium embedded framework (CEF). And

What data type is suitable to handle binary data in ActiveX method?

本秂侑毒 提交于 2019-12-03 16:06:31
I'm writing an ActiveX control for my friend, that should encapsulate encryption routines. It will be used from VB6 primarily. What data type should I choose for binary data like encryption key, initialization vector, input and output data so that it would be convenient for my friend to use it from VB6? I'm using Delphi 7 to write this ActiveX, if that matters. One choice is to use hexadecimal strings. What can be the other? kobik VB6 Binary data stored in Byte variables and arrays. Dim arrData() As Byte VB6 Application should pass that variable to your Delphi COM as OleVariant . Delphi COM

Excel 2010 ActiveX Controls No Longer Working After Windows Updates [duplicate]

本小妞迷上赌 提交于 2019-12-03 15:58:51
This question already has answers here : Closed 4 years ago . Microsoft Excel ActiveX Controls Disabled? (11 answers) So at work I ran into this issue after I installed the most recent Windows 7 updates (including Microsoft Office 2010 updates) - the date up the update was today (Dec 12, 2014). After the update, I opened my macro enabled workbook in Excel 2010 and basically anything that referenced ActiveX controls (checkboxes, buttons) no longer worked. My auto_open was checking checkboxes and couldn't run... it kept erroring at the first checkbox check. The buttons are also no longer

How can I return both an error string and error code to VB6 from an ATL activex control?

这一生的挚爱 提交于 2019-12-03 15:31:00
I'm trying to return a detailed error to VB6 using CComCoClass::Error , but it seems I can only return an error code /or/ a message - but not both. return Error(_T("Not connected"), __uuidof(IMyInterface), HRESULT_FROM_WIN32(ERROR_CONNECTION_INVALID)); results in a generic "Method 'Request' of object 'IMyInterface' failed" error message in Err.Description on the VB6 side (but ERROR_CONNECTION_INVALID in Err.Number), while return Error(_T("Not connected")); results in the appropriate error message, but a generic error code in Err.Number. How can I get the best of both worlds? Steffen Opel You