activex

Delphi - Thread not executing in ActiveX form - but does elsewhere

走远了吗. 提交于 2019-12-05 10:12:04
I have a thread, called TAlertThread. The thread interacts with its owner by triggering events. For example, when certain data is available inside the thread, it sets some temp variables and calls Synchronize(UpdateAlert) which in turn triggers the appropriate event. Now the thread works perfectly in any standard windows application. My problem is when I put that thread inside of an ActiveX form (TActiveForm). The ActiveX control (aka COM object) is then embedded inside of a Windows Desktop Gadget (via HTML / Javascript). I also have experience with this, the gadget is not the issue. The

ActiveX VLC Player events are not working

老子叫甜甜 提交于 2019-12-05 02:56:52
I have incorporated ActiveX VLC pligin to WPF application . And VLC Plugin is working fine. AxVLCPlugin vlc = new AxVLCPlugin(); vlc.MediaPlayerEncounteredError += vlc_MediaPlayerEncounteredError; vlc.MediaPlayerOpening += vlc_MediaPlayerOpening; vlc.MediaPlayerBuffering += vlc_MediaPlayerBuffering; vlc.MediaPlayerEndReached += vlc_MediaPlayerEndReached; // // Other code // like windowsFormsHost1.Child = vlc; and etc vlc.addTarget(videoURL, null, AXVLC.VLCPlaylistMode.VLCPlayListReplace, 1); vlc.play(); But some how all events of VLC are not working at all. I mean these events: vlc

How To Programmatically Enable/Disable 'Display PDF In Browser' For Acrobat / Reader XI or DC For Use With Adobe ActiveX Control

江枫思渺然 提交于 2019-12-05 01:45:22
We have a .NET C# application that makes use of the Adobe ActiveX Controls. For versions 7-10 of both Adobe Acrobat and Adobe Reader, to use this control you were required to turn on the "Display PDF In Browser" setting. You could do this manually from the GUI using Preferences > Internet > Display PDFs in browser or programmatically by setting the registry settings directly HKEY_CURRENT_USER\Software\Adobe\(Product Name)\(Version)\Originals "bBrowserIntegration"=dword:00000001 Which follows the SDK reference http://www.adobe.com/devnet-docs/acrobatetk/tools/PrefRef/Windows/Originals.html

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

倖福魔咒の 提交于 2019-12-05 01:05:51
问题 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

Registration free activation of native COM (activex) component from .NET

▼魔方 西西 提交于 2019-12-04 22:09:05
I have a native dll (which is an activex control) that I need use with my .NET application without having to register the dll in the registry. I have read several in depth posts about registration free activation, some of the better ones are A lengthy one from Steve White and Leslie Muller This one from samuel jack And another from Mike Makarov and from what I can see it is possible. However several hours and hundreds of tests later I just cant get it to work. I've done a bit of PInvoking and even less with ActiveX controls in .NET in my career, so would appreciate any input from anyone whom

Implementing VLC player in a Windows application: Programatically registering an ActiveX component

↘锁芯ラ 提交于 2019-12-04 19:19:36
Im using the following guide to implement a VLC player inside my windows application: http://www.codeproject.com/Questions/163016/How-to-embed-VLC-control-in-c-net-windows-applicat (see the top rated answer) On step 2 in the guide, it says that I have to register the ActiveX component: regsvr32 "D:\Program Files\VideoLAN\VLC\axvlc.dll" How do I do this programatically in the software so that the user doesn't have to? Im unsure on how to proceed here. Can anyone help me? Please try this routine to register your dlls public static void RegisterDll(string filePath) { string fileinfo = String

What's the best/easiest way to manipulate ActiveX objects in Java?

北慕城南 提交于 2019-12-04 19:04:21
I want to open and manipulate Excel files with ActiveX. I've had success with Python's Win32 Extensions and Groovy's Scriptom libraries on other projects but need to do this is pure Java this time if possible. I've tried the Jacob Java COM Bridge but that doesn't seem as straightforward or simple to use, and I couldn't get it to retrieve cell values (even though this is the library underlying Scriptom). Are there alternatives? Jacob is really the tool for the job here. I recommend that you take the time to learn a bit about how COM and ActiveX work, and I think you'll find that it's easier to

How to convert ActiveX control to NPAPI plugin

放肆的年华 提交于 2019-12-04 17:11:50
I have an ActiveX control which is designed to * Search for nearby wireless networks * Create a wireless access point * Manage network adapters I would like this plugin to work in Google Chrome/Firefox. In IE; I can use the following code to embed: <object classid="clsid:33FC4347-8118-4DB5-BFBE-8FCF2C96A997" width="32" height="32" id="thectrl"></object> and I create a wireless network as follows (in JavaScript): thectrl.createNetwork("test",0,null,"NONE",3); The ActiveX has an IDL file, and outputs to OCX format. How do I turn this into a plugin for Google Chrome/Firefox? If you want to

What is the difference between AxInterop and Interop?

 ̄綄美尐妖づ 提交于 2019-12-04 16:58:13
问题 I've added an .ocx to the toolbox in VS. Two .dll's were created: Interop.NNN.dll, AxInterop.NNN.dll. What is each one? Are they both required? 回答1: The AxFoo.dll assembly contains an automatically generated class that's derived from the System.Windows.Forms.AxHost control. It is pretty simple, it has methods, properties and events, the same ones you have available in the .ocx, that simply call the Foo.dll interop library. So, yes, you definitely need to deploy both assemblies. 回答2: Interop

VBA Excel Combobox: drop-down list scrolling issue

不打扰是莪最后的温柔 提交于 2019-12-04 16:21:16
I am running 32-bit Excel 2010. I have created multiple ActiveX Control combo boxes and they all have numbers of entries in their drop-down lists. The thing is that instead of using mouse click to scroll the list, I want to use the mouse scroll to scroll the list, but it actually doesn't work. When I scroll inside of the list, it scrolls the whole list down instead of the content in it. So does anyone know how to add this feature to it? Neil I used this method to stop the list detaching from the combo box and moving down the sheet with the mouse scroll. It actually disables the mouse scroll,