Click here to Skip to main content
15,886,199 members
Everything / ActiveX

ActiveX

ActiveX

Great Reads

by Maxim Kartavenkov
Articles describes how to create virtual video capture source directshow filter in pure C#
by Maxim Kartavenkov
Article describes how to make H.264 Video Encoder DirectShow Filter using NVIDIA encoder API in C#
by Maxim Kartavenkov
Article describes basic task which are requre to solve for developing your own DirectShow Splitter filters.
by Maxim Kartavenkov
Article describes basic tasks for implementing your own File Source DirectShow filters.

Latest Articles

by Southmountain
How to install and register .OCX components for legacy application
by gricardi
As users are migrating from traditional desktops to mobile devices, transitioning your Windows application to the web is the next step to increasing your exposure. Thinfinity VirtualUI delivers your Windows applications to users on any device, anywhere.
by TapasU
Steps to decode Windows Error code
by FranciskaR
Extract pages from a .pdf file and save as bitmaps

All Articles

Sort by Score

ActiveX 

13 Oct 2012 by Maxim Kartavenkov
Articles describes how to create virtual video capture source directshow filter in pure C#
16 Jul 2012 by Maxim Kartavenkov
Article describes how to make H.264 Video Encoder DirectShow Filter using NVIDIA encoder API in C#
7 Oct 2012 by Maxim Kartavenkov
Article describes basic task which are requre to solve for developing your own DirectShow Splitter filters.
21 Apr 2010 by Rama Krishna Vavilala
A Microsoft tool named RegMaid does the same thing as what you want to do. The nice thing is that it comes with the full C++ source code. As you can see there is lot involved in removing ActiveX controls (CLSID, AppID, Interfaces, Typelibs etc). Download the tool and the source code...
13 Oct 2012 by Maxim Kartavenkov
Article describes basic tasks for implementing your own File Source DirectShow filters.
18 May 2022 by Southmountain
How to install and register .OCX components for legacy application
2 Jan 2011 by Cedric Moonen
Yes, you need to install something on the target PC: the microsoft Visual C++ redistributable package. If your ActiveX was developed with visual studio 2008, then you can find the package here[^]. If you used another version of visual studio, then you have to look for the corresponding package.
13 Apr 2011 by Sergey Alexandrovich Kryukov
This is not a problem. You can even host and plug-in whole WPF applications. I think you don't need this, so I'll explain a skeleton of plug-in design.Let's assume you have host application which never changes (more exactly, its plug-in support sub-system is not changed or is changed...
29 Jul 2012 by OriginalGriff
Probably not - IE and ActiveX are about the only solution to doing that, and even that is unlikely to work in the real world - too many rogue ActiveX controls mean that support for them even in IE is normally disabled.The chances of your getting this to work at all outside a corporate...
8 Apr 2013 by The_Inventor
You need a member and method(s) that point to the mschrt20.ocx functions within the mschrt20.ocx module within your module's code. Also you will need to include mschrt20.h in your header file for you module. Then in your OnDraw() use the methods and member, that is in your header file of your...
22 Jul 2013 by Ron Beyer
The only solution is to turn UAC off, there's nothing you can do in code to get around this.UAC exists to protect the user from the code. For that reason the code can't bypass the user. If there was a way around this in code, then viruses or malware could bypass UAC without telling the user,...
9 Sep 2015 by Vladyslav Chernysh
The goal of this tip is to share knowledge and experience on ActiveX usage in .NET applications (back-end & front-end).
25 Feb 2011 by Joel C Graff
A method for managing complex, event-driven interactions between controls
3 Mar 2011 by pras3njit
I am trying to state my problem very clearly.I want to retrieve a set of fonts. They are not found in the System's default font directory, and also their path is not written or set in the registry. But still they are displayed in the font dialog box of any editor. Actually, in order to view...
13 Mar 2011 by VENKATHEGDE
Hello Everybody,I have an interesting problem at hand.I have a need to create a WPF Application which will host several UserControls. (The application does just that - serves as a container with docking abilities for UserControls)The application will also host the data model for the...
13 Mar 2011 by Sergey Alexandrovich Kryukov
Answering follow-up Questions:Question 1Consider the following sample://plugin-code of the implemented plug-in interface:Control[] IControlPlugin.AddControls(DockPanel parent) { Button leftRect = new Button(); leftRect.Content = "_Left"; DockPanel.SetDock(leftRect,...
18 Apr 2011 by Sergey Alexandrovich Kryukov
First thing you need to know: DLL's have no sessions. You should better talk about Assemblies and class libraries, as "DLL" in .NET is just "extension", a part of file name, no more; it can be anything, you can even use .EXE file as a library: reference it, load it, etc.The scope and life...
26 Oct 2011 by Abhinav S
First, the term "static object" is a misnomer. A static class cannot be instantiated in .Net.You can expose a static method or class in .Net.Instead of CreateObject you can use the new keyword and that will create an instance of a class for you.In case you don't want to do all this,...
15 Jul 2012 by AshishChaudha
I had tried this..Open IE >> Tools >> Internet Options >> Security >> Custom Level >>(Enable) Initialize and script ActiveX controls not marked as safe for scripting You Javascript for ActiveX will surely run.ThanksAshishMark it solution if this is your answer..
16 Aug 2012 by Dynamsoft
In this article, I’ll show you how to convert scanned images to searchable text and PDF files through a web browser.
26 Dec 2012 by Sergey Alexandrovich Kryukov
Why using ActiveX at all? For a Web application, this is pure evil. ActiveX is proprietary and aging technology which will never be available on all client systems. Moreover, using ActiveX is considered unsafe, for good reasons, so really knowledgeable users will deny using your application as...
23 Jul 2013 by Sergey Alexandrovich Kryukov
In addition to discussion in comments to Solution 1:You user is always free to lower down UAC protection. For example, on Windows 7:Control Panel -> Small Icons (All Control Panel Items) -> Action Center -> Change User Account Control Settings.If your customer lowers the slider down to...
20 Oct 2015 by Sergey Alexandrovich Kryukov
Please see:https://github.com/ZeBobo5/Vlc.DotNet[^]or https://libvlcnet.codeplex.com[^].See also this CodeProject article: nVLC[^].—SA
19 Jan 2016 by Jochen Arndt
It seems that the full screen mode requires that the video is actually played. When your code tries to switch to full screen mode, the media player has probably not finished his startup. So you have to wait until the state has changed. This can be done using the IWMPEvents::PlayStateChange...
21 Sep 2018 by Maciej Los
I'm not sure i understand you well, but... A presentation of PowerPoint application 2007 (and higher) is in OpenXml format[^]. This means that you can open it (and view) using, for example, 7-zip. For further details, please see: Structure of a PresentationML document (Open XML SDK) |...
8 Mar 2010 by seyda seyid
Hello ,I must add the Active X element to my Dialog ,I want to use Microsoft Office Chart 11.0 Object. But I dont know How can I use it in my MFC Project.Can somebody please help me?thanks
11 Jun 2010 by Richard MacCutchan
Probably much the same as in your original question[^].
16 Aug 2010 by Eugen Podsypalnikov
Try to empty the function DllRegisterServer(..) and then add line to line (slowly) to find the "catch".You could also use the ::MessageBox(..) function after each line thereto "control" the execution :)
20 Dec 2010 by Rajesh G Manwani from Mumbai
I updated an interface of an ActiveX control with two methods. I compiled the .idl file and generated the ocx. The interface had 89 methods. I got the following warning which I ignored:warning MIDL2362: too many methods in the interface, requires Windows NT 4.0 SP3 or greaterI am compiling...
21 Dec 2010 by TalentMouse
When I call the "flash lite 3.1 activeX control" in my program(Microsoft WTL c++), I encountered some problems. I completed in accordance with the practice on windows xp, but in WINCE platform it could not work. If someone knows something about this then please give some recommendations....
30 Jan 2011 by AndyASPVB
HiI have an Active X that is fired from either a button or a hyperlink in a web application that launches Outlook 2003. Unfortunately, the load behaviour is always being set to 2 by Outlook when I monitor this in Process Monitor.I have installed VS Office Tools 2005, during set up or...
3 Mar 2011 by ARopo
We have a product that is partly written in VB6. It is built up ofmany dlls that are activeX dlls. I'm trying to reduce our dependence onregistered COM objects. Since all the components are used inprocessthere is no need for items to be registered and during run-time, usingreg free com I...
3 Mar 2011 by Dave Kreskowiak
There is no way to prevent this. VB6 will register the controls on every time they are built. You cannot stop it from doing so.
5 Mar 2011 by imaa2amha
Dear Experts ,Please I Created AX Component with C# and Compiled and it was ready to use i test it and thing was doing great i formate my laptop and then bomb not working . i do this thing after formate :1- Compiling command csc /t:library AXComponent.cs /r:System.Drawing.dll...
19 Apr 2011 by BobJanova
Not the recommended solution! ;)But seriously, I don't think it is. You can't communicate with hardware on the client machine without them installing an ActiveX and permitting you to run it when they visit your website, so why not have them install a WinForms (or WPF) desktop app to manage...
28 May 2011 by thatraja
This KB will help youHow to host ActiveX controls in a Web form[^]
5 Jun 2011 by Ramalinga Koushik
Hope this[^] might help you.
1 Aug 2011 by RoboJ1M
Write a batch file to do your building, including unregistering the DLL afterwards, we use:subst Z: .vb6 /make %ProjectFile% /out "%LogSuccess%\%PROJECTNAME%_Log.txt" /outdir Z:\binIF ERRORLEVEL 1 MOVE "%LogSuccess%\%PROJECTNAME%_Log.txt" "%LogFail%"regsvr32 /u...
4 Aug 2011 by bherbert
Okay i finally figured out the problem !I just needed to generate a .TLB file for the DLLFoxPro 9.0 like all legacy platforms enforces to use that file for COM server description
18 Oct 2011 by Venkatesh Mookkan
WPF is basic a Window based application and it required Framework 3.5 or greater to run on a machine. Whereas Silverlight uses just Runtime Libraries to run on a browser or Sandbox and also it does not have the WindowsHost control or something to host the ActiveX
26 Oct 2011 by Nish Nishant
The closest equivalent would be a Windows service that exposes a WCF service (or remoting) interface. That said you could use COM interop to consume your VB6 ActiveX exe directly if you so prefer.
19 Dec 2011 by coded007
On the down in discussions bobnob quoted like this Hi! On the client side, this only works with user accounts that have administrative permissions for the local machine, e.g. are in the "Administrators" or "Power Users" Group. I think that's because installing the contents of the CAB...
3 Jan 2012 by Cpp_Com
Dear All,I've created an MFC ActiveX control to use in web based application. In that ActiveX control, there is a method to create a folder in a selected drive e.g. (C:\MyFolder\Folder1). This ActiveX(.ocx) is working fine if i try to create the folder from HTML page (which is in local PC )...
2 Jan 2012 by CPallini
On Windows 7 such an operation is not allowed to standard user code. You have to run your application 'as administrator' or programmatically elevate the application level of execution (there are articles here at CodeProject about it, see, for instance: "Riding the Vista UAC elevator, up and...
9 Jan 2012 by Jamal Seyedi
I think you should put the ActiveX control to an element and then hide the element.then show the alert.
30 Jan 2012 by striving_zhou
as winform application can make into activex, so it can use in webform, can i make wpf application into activex if i donot want to tranlate it into silverlight application, i tried, but it cannot do as winform, can anybody gave some help?more info:with winform, i create a usercontrol ...
4 Jun 2012 by E.F. Nijboer
An activex is a browser add-on that (in almost all cases) isn't installed by default. It needs to be available and installed on the client machine. A client needs to confirm that it trusts the activex control before installing it (and warned repeatedly) because an unsafe activex control could...
6 Jun 2012 by taha bahraminezhad Jooneghani
this app show docx file as htmlhttp://openxmlviewer.codeplex.com/[^]And Maybe interest this API:Generate Word documents DOC, DOCX in ASP.NET, VB.NET, C# with Bytescout Document SDK[^]this one is good too and have an online demo but i couldn't find any source to...
15 Jul 2012 by Suvabrata Roy
Hi, This error happen because your code is try to perform some risky task, so browser blocking you.So you can try this Open IE > Tools > Internet Options > Security > Custom Level > (Enable Active X )
12 Aug 2012 by barneyman
IE9 is touch more pedantic than the previous versions as regards security for AX objectsThe 3 problems to solve are1. Allowing code to be downloaded2. Allowing code to be loaded3. Allowing script to be runYou can turn these checks off in Options/Security, but i'd suggest you're...
13 Aug 2012 by manoranjan
You need to use OLE_HANDLE.You have to typecast HWND to OLE_HANDLE (and vice versa). Check the following link for a sample:http://us.generation-nt.com/answer/how-do-you-cast-an-hwnd-an-ole-handle-help-9254962.html[^]
22 Aug 2012 by Sandip.Nascar
What kind of error you are getting?It seems, you might be getting validation request error.If yes, you need to set validationRequest=falseIf you are getting session timeout error, then the picture is different.If you are getting different error, please specify the error...
26 Aug 2012 by Mehdi Gholam
Check this thread : http://social.msdn.microsoft.com/Forums/en/winforms/thread/c7c9a6f9-9875-4d8b-8c87-81f2c423fa6a[^]
21 Sep 2012 by Sandeep Mewara
Here is the reason of why such error happens:This component doesn't support this set of events (Error 459)[^]It says:- You tried to use a WithEvents variable with a component that can't work as an event source for the specified set of events. For example, you may be sinking events of an...
19 Dec 2012 by armagedescu
It is easy.//ATL ActiveX wnd for the nested control, best place is as a class memberCAxWindow wndAnimationWnd; //best in OnCreate:wndAnimationWnd.Create(hWndOfYourControl, //hwnd of outer control &rect_ForEmbededAnimation, //client coordinates inside the outer control ...
3 Dec 2012 by Pablo Aliskevicius
::CoFreeUnusedLibraries();Ma...
9 Apr 2013 by The_Inventor
Presuming you have a:CDC* m_pchrtMyChart;in your code then all you should have to do is:m_pchrtMyChart = mschrt20obj.m_pchrtObj or something to that extent. Often there is a HANDLE involved in order to transfer information about the object. It is a lot like using Bitmaps.
9 Apr 2013 by Member 8772143
Hi,I have a device controlled by a controller with a software interface. I do not have any documentation regarding SDK available but a manual for software. This software has .dll files and .ocx files available in it's Binaries folder. I want to develop a custom application in C# to...
11 Apr 2013 by Pedro Lacerda
Thank you for your time The_Inventor!I've got the problem solved by adding the chart in a IDD_DIALOG and attaching it to the ActiveX. But the ActiveX must be enabled for control container,and the dialog must have a bunch of flags setted.More InfoCheers!
17 Sep 2013 by Sergey Alexandrovich Kryukov
Please see my comment to the question addressed against using Direct X and COM with .NET. You don't have to use it to use VLC. For example, please see this CodeProject article:LiquidVideo, Play Video Anywhere with VLC C# .NET VideoLan[^].[EDIT]This is the updated useful information on...
18 Apr 2013 by skydger
It depends on architecture of your application.Any COM method accepts only "known" parameters in its methods which are primitive datatypes, VARIANT-based or user defined interfaces. So if you want to invoke some method in its implementation it must be defined in some other interface. And your...
22 Apr 2013 by Prasad Khandekar
Hello,BadImageFormatExcept...
13 May 2013 by Vani Kulkarni
You can use online viewers to serve your purpose:Check these links:http://forums.asp.net/t/1749800.aspx/1[^]http://forums.asp.net/t/1757452.aspx/1[^]http://googlesystem.blogspot.in/2009/09/embeddable-google-document-viewer.html[^]Code that might help...
26 Jul 2013 by 2006 Flauzer
I'm developing a C# assembly which is to be called via COM from an old vb6 (ie, "native" win32, not .net) application. I've installed VS2010 Premium in a W7 x64 and simply my goal is to use Visual Studio to debug the C# code...Other hint: the C# assembly is compiled in "x86 mode" (.NET4)...
11 Dec 2013 by H.Brydon
Several thoughts:- You have '#include ', which is almost certainly an error. This include should be in .cpp files only. This may or may not be the source of the error.- You may have a duplicate definition of the class. Go to the .cpp file where the error occurs, right click the...
12 Feb 2014 by hari111r
Hi,I would like to embed the (MsRdpWebAccess.MsRdpClientShell) active-x control from Remote desktop Web access (win 2008 r2) in my own web page?orIs there any way to use rdp file in web application
15 Apr 2014 by James_Finch
Why not create a server / client program set? It's not too difficult to create a server client relationship using TCP or some other protocol other than RDP. The 'client' can monitor pretty much any activity on the host machine (as well as control it) and report back to the 'server'.
15 Apr 2014 by Sergey Alexandrovich Kryukov
AsmoconX wrote:This is a test environment and information is not meant to be added or modified on the remote systems (for validation and testing requirements). The test-process requires us to login to the system using a Remote Desktop Connection and perform a set of tests within that Remote...
29 Jun 2014 by _Sahar
I am using the Microsoft Ax Framer Control to view the word document in the Visual C# Form. After Hosting(Open) the Word Document in the Ax Framer Control. While Right Click on the Word Document, Ms word Context Menu is Appearing. I Want to Hide this Pop up Menu. I...
28 Aug 2014 by KarstenK
If you use Nelek receipt you already have found the solution. ElseHere is a nice tutorial right for you: Create ActiveX in .NET Step by Step.This one looks like for newbies: How to develop and deploy ActiveX control in C#
17 Dec 2014 by Aescleal
My choice would be a DLL that exports a simple C interface - essentially something to initialise the library and register all the window classes. Whether you use another library (e.g. MFC) to implement your controls doesn't then matter for the client of your code.The reasoning behind that is...
15 Mar 2015 by manchanx
I suggest you reconsider either your approach or your mindset. Trying to disallow the user to utilize something he can see on his screen is doomed to fail. Haven't you too already circumvented some website mechanics trying to hinder you from saving an image? Even if you somehow succeed in...
28 May 2015 by Maciej Los
No! It's your job. You have to take up at least minimum effort. When you get stuck come back here and ask detailed question!
22 Sep 2015 by CPallini
Using the MFC ActiveX Control Wizard (see Creating an MFC ActiveX Control[^]) such task is pretty straightforward.
2 Feb 2016 by Dave Kreskowiak
"CodeProject" did not write the control. The person who wrote the article you got the control from wrote the control.There is a forum at the bottom of the article your got it from. Post your question there and the author should support the code he wrote.
17 Jun 2016 by Sergey Alexandrovich Kryukov
Event handler is just the method. It becomes a handler when you add it to the invocation list of some event instance.Therefore, the concept of "overriding" is not different from overriding of any other method. The method should be virtual and the derived class need to have sufficient access...
31 Aug 2016 by Richard Deeming
ActiveX controls will only work in Internet Explorer on Windows, and only if the user allows your site to download the control, and to script ActiveX controls not marked as "safe for scripting".(Your control is NOT marked as "safe for scripting", is it? Because it's not - it allows a website...
28 Jun 2018 by Dave Kreskowiak
Yeah, think about what you're trying to do for just one second. If this was possible, how many web sites (ethical or otherwise) would be scrambling to use this? A LOT of them! The security implications of this are staggering. Also, think about the number of users using the site and the...
8 Oct 2018 by Richard MacCutchan
Talk to the person who sent you the file.
20 Dec 2018 by #realJSOP
Nobody uses ActiveX (aka ActiveExcrement) if they can possibly avoid it. It's insecure. Find another way.
2 Mar 2019 by Dave Kreskowiak
Why on earth would you want to use it? ActiveX Control Pad is 20 years old. ActiveX isn't supported by any of today's browsers because it was insecure as hell, and even when it was supported, only Internet Explorer and older versions of Firefox supported it. Trying to use it today is a...
5 Apr 2019 by Patrice T
Quote: How do I open .exe from Client's Machine in chrome Browser.Earlier this was done using ActiveX Object but as Chrome does not support ActiveX object. Short answer: Basically, ActiveX is not supported in any recent browser because of this possibility which is a major security threat....
5 Apr 2019 by OriginalGriff
You pretty much can't - ActiveX was only ever available in IE, and even there it was disabled by default pretty damn quickly as it is a massive security hole. You will notice that even Microsoft didn't leave it in Edge when they released that! Think about it: if you could do it, so could the...
17 Apr 2019 by #realJSOP
DO NOT USE ACTIVEX. (Commonly referred to as "Active-Xcrement") Only Microsoft browsers support it, and anyone with have a brain avoids using it because it's insecure. There are too many examples of writing ADO code for an Asp.Net web site to have to use ActiveX.
17 Apr 2019 by Dave Kreskowiak
You don't have an alternative. Accessing data from somewhere on the client machine is not going to work anywhere. It's a security risk (and why nobody supports ActiveX any more!) and is not allowed by any browser. All record handling should be done by the server, not the client. The client is...
17 Apr 2019 by Patrice T
Quote: Cross-browser alternative needed for activexobject javascript There is none, Activex have only been supported by MSIE. Activex is a major security risk. You need to rethink moving ActiveX functionality to server side. Only this is cross-platform.
26 Sep 2019 by CPallini
A quick and dirty search result: TIP: Adding a typelibrary as a resource to a project[^].
31 May 2021 by Dave Kreskowiak
ActiveX isn't supported in any modern browsers today because they are considered security risks.
31 May 2021 by Patrice T
Quote: Activex control is not working on edge and chrome browser created in VB.NET project Activex have never work on browsers other than EI and will never. You can consider Activex as a dead technology. As MS start to uninstall EI in latest...
29 Dec 2009 by RxQVW
Is it possible to convert WTL window applicationto ActiveX control that can be embedded in IE browser ?
4 Jan 2010 by Christian Graus
wrote:I know than I have to using WaitFor VerticalBlink() and Flip() functions.Do you ? If you're owner drawing, I'd just expect that you need to double buffer. Hard to know, you don't say what language you're using, where you use your control, or what it does.
5 Jan 2010 by Lagarino
Hi!I have created an activeX and a MSI file to install it, and it works perfectly in Internet Explorer 8 if I install it manually.I have also created a CAB file with an INF like this:[version] signature="$CHICAGO$" AdvancedINF=2.0[Setup...
5 Jan 2010 by DexterMacrame
I need to read and write to an ActiveX control located in a broswer that accesses a mainframe. It is a simple command line interface (strictly text), and I believe it might be based on a citrix interface. I would like to be able to send a command and read via code the result. Can anyone give...
6 Jan 2010 by MidwestLimey
Does the ActiveX control already exist, if so is a description of the API available for it? If not you can import it into a win or console app to at least get intellisence.Otherwise the object tag is just any other part of the DOM. You can get access to it via it's id like any other element....
18 Jan 2010 by Mr. Su
I had done the same thing few years back with little success.You can do run the setup from the active X itself.From the source code of Active X, run the MSI installation.Else you can do one thing, run the MSI after active X is loaded.Put the installer srcipt in the later section of the...
18 Jan 2010 by Lagarino
Sure, but what I am trying to do is to install the ActiveX, so I cannot run the MSI suppossed to install the ActiveX from the ActiveX itself if it is not installed.
2 Feb 2010 by KingsGambit
I think you can create a new ATL Control project and use any reusable code from the existing WTL Application project.