activex

What the right way to sign activex control and grant permission

点点圈 提交于 2019-12-11 15:36:38
问题 I have activex C# control for IE. That contol downloaded from some host. Control does some work that needs special permissions(IE shows window with information that my control cannot do operation without permission). I spend a lot of time googling and reading many topics about similiar situations. I understood that I must do following things: 1. Sign control assembly with strong key. 2. Grant permission to assembly. I generated strong key with VS2010 tools. After that my control stopped

write a com control in c# and use it in MFC

懵懂的女人 提交于 2019-12-11 15:35:32
问题 if this possible to write a com control or activex in C# and use it in MFC ? 回答1: Yes. First, you need to create COM object. Below is a very simple example. [Guid("123565C4-C5FA-4512-A560-1D47F9FDFA20")] public interface IDoSomething { [DispId(1)] string Name { get; } [DispId(2)] int DoSomething(); } [ComVisible(true)] [Guid("12AC8095-BD27-4de8-A30B-991940666927")] [ClassInterface(ClassInterfaceType.None)] public sealed class DoSomething: IDoSomething { public DoSomething() { } public string

.net activeX equivalent

。_饼干妹妹 提交于 2019-12-11 15:29:53
问题 Is there a pure .NET replacement for ActiveX? I'm asking if there is a way for me to write a thick client side control to be loaded and interacted with in a web page in .NET, with NO com. Edit: I don't want ActiveX in pure .NET, I want a .NET alternative to ActiveX. 回答1: I'm afraid there is no perfect managed only equivalent of ActiveX. Mostly for good reason. ActiveX is a dangerous technology security wise and duplicating it's effects in many ways would require duplicating the lack of

Does WPF WebBrowser support VLC ActiveX?

可紊 提交于 2019-12-11 15:24:13
问题 What I need is to open ANY Web page that has implemented VLC ActiveX under WPF WebBrowser. I just did a VERY simple page that works perfect under IE9/10. But when I open it there is no any VLC :( <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=9" /> <meta http-equiv="cache-control" content="max-age=0" /> <meta http-equiv="cache-control" content="no-cache" /> <meta http-equiv="expires" content="0" /> <meta http

Conditionally set OLE definition

眉间皱痕 提交于 2019-12-11 13:44:24
问题 In Clarion, I'm looking to set the definition for an OLE dynamically in a window. Right now, this is how I define two OLE objects in a window: Window WINDOW('Test ActiveX Window'), AT(,,431,92), FONT('MS Sans Serif', 8,, FONT:regular), COLOR(COLOR:White), CENTER, ALRT(F2Key), TIMER(10), GRAY OLE, AT(10,3,11,7), USE(?MyOLE1), HIDE, CREATE('MyActiveX.MyActiveXCtrl.1'), COMPATIBILITY(021H) END OLE, AT(30,3,11,7), USE(?MyOLE2), HIDE, CREATE('SomeOtherActiveX.SomeOtherActiveXCtrl.1'),

Error with axShockwaveFlash in C#

不羁岁月 提交于 2019-12-11 11:22:07
问题 I'm using axShockwaveFlash in my C# project. I don't know why it gives me error: *Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))* platform of target is x86. what should I do now to fix it? 回答1: I'v solved it myself. I installed adobe flash CS5 then it fi 来源: https://stackoverflow.com/questions/19815166/error-with-axshockwaveflash-in-c-sharp

“Catastrophic failure” when accessing an OCX library from C#

…衆ロ難τιáo~ 提交于 2019-12-11 10:54:16
问题 I'm currently trying to use a third-party DLL from my C# application. I've registered the DLL and added it as a reference from the list of COM component. As I understand, this should create the necessary interop classes to access this DLL from C#. On attempting to call any methods from within the DLL I get the following exception:- System.Runtime.InteropServices.COMException was unhandled Message=Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)) Source=mscorlib

Running command Wscript.shell ActiveX in Javascript

只愿长相守 提交于 2019-12-11 08:23:50
问题 I have a webpage that needs to run a program by ActiveX with some parameters. I get those parameters with the following bit of JavaScript: var var1 = getUrlParameter("par1", false); var var2 = getUrlParameter("par2", false); var var3 = getUrlParameter("par3", true); var var4 = getUrlParameter("par4", true); I'm creating a new ActiveX Object: MyObject = new ActiveXObject("WScript.Shell") Then I need to run a command, I've tried several options with double and single quotes but nothing works.

Excel spreadsheet events - how to create generic MSForms.Control event handler for all ActiveX controls?

元气小坏坏 提交于 2019-12-11 08:16:42
问题 Background/Introduction In an effort to tame wild ActiveX objects, I am implementing custom event handlers which I can assign to each ActiveX control. I currently have implemented one such as the class, WSCheckboxEventHandler: Option Explicit Private WithEvents m_ole As MSForms.CheckBox Private m_ws As Worksheet Public Sub init(p_SourceOLE As MSForms.CheckBox, p_ws As Worksheet) Set m_ole = p_SourceOLE Set m_ws = p_ws End Sub Private Sub m_ole_Click() Debug.Print "Checkbox click for " + m_ole

C# pass int and string by reference to C++ ActiveX Control: type mismatch

血红的双手。 提交于 2019-12-11 07:46:28
问题 I have a problem passing by reference int or string variables to C++ ActiveX Control. Also I pass these variables by reference to C++ DLL and everything works fine. C++ DLL: __declspec (dllexport) void Execute (LPCTSTR cmd, int& resultCode, LPCTSTR& message, long& receiptNumber) { message = _T("ReplyProblem"); resultCode = 100; receiptNumber = -1; } C#: [DllImport("MyCOM.dll", CharSet = CharSet.Unicode)] public static extern void Execute (string cmd, out int resultCode, out string message,