Click here to Skip to main content
15,891,907 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 Updated

ActiveX 

7 Apr 2023 by Zouaoui Billel
Hello All; I am working on C++/MFC project where I need to use access control device SDK acualy I registred SKD DLL (using regsvr32.exe) to create a controller, after that I Open my MFC project and I added activex controller from the wizard, ...
4 Apr 2023 by Member 13313929
We use Kaspersky Security Center to manage AV on all our domain computers. I was looking for an external way to move computers to different groups and change the comments we give them in the Kaspersky Security Center. Kaspersky gave me some links to check out but I have no idea where to start on...
16 Mar 2023 by Richard MacCutchan
As far as I can see your code should not compile, because of: static BYTE parms[] = VTS_BSTR VTS_I4; The elements of an array should be separated by commas, thus: static BYTE parms[] = { VTS_BSTR, VTS_I4 }; ...
16 Mar 2023 by Zouaoui Billel
Hello All; I am working on C++/MFC project where I need to consume an active x control, so I create a control like CZKEM1 m_zktecoCtrl; but when I try to invoke it Like bool bConnect = false; bConnect =...
16 Mar 2023 by CPallini
Someone here would (correctly) write: "This is not a good question [...]". As Richard pointed out, at least one argument is expected. You should post here, at least, the Read method prototype in order to get meaningful help. [update] Your...
20 Jul 2022 by Thirumadhi T Johnson
Hi I am looking for to run this Set up file specially in MS EDGE Browser .It does not work in EDGE .How do I achieve this what changes needs to be done . Please Help . What I have tried: function...
20 Jul 2022 by Richard Deeming
You can't. Javascript code running in a web page CANNOT launch random programs from the local computer's network, since this would be a massive security risk. And no, there is no way around this. And no, "it's a client requirement" isn't a...
18 May 2022 by Southmountain
How to install and register .OCX components for legacy application
11 Jul 2021 by Member 15254346
Hi all, The VB6 version of the RichTextBox OCX control is less complete than the corresponding control in Visual Studio. I started using Visual Studio for a very short time (I come from very different development environments) so I am not yet...
28 Jun 2021 by Dave Kreskowiak
You keep saying "OCX", but that's a term that's falling out of use, along with ActiveX. Yes, you can wrap, or expose, the functionality of a .NET control, through COM so other apps can still use the control. Though, to do so, you'd need to...
9 Jun 2021 by MyOldAccount
INTRODUCTION: I have created ActiveX control, using MFC ActiveX control wizard in Visual Studio 2019. Consuming it in C# WinForms app works well, I face no problems and control works as intended. I have tried to test the control by using it in...
9 Jun 2021 by Member 15097399
I am facing the same issue. VS2019 16.9.3 Adding manually all the functions (200+) is not an option for me. I have VS2015, will have a look at that...
31 May 2021 by Member 15224382
In my VB.Net project the ActiveX objects are created in .js as shown below and it works well on IE but not on Edge Chromium and Chrome browser. function createActiveXObj(){ if(!fs) fs = new ActiveXObject("Scripting.FileSystemObject"); ...
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...
31 May 2021 by Dave Kreskowiak
ActiveX isn't supported in any modern browsers today because they are considered security risks.
27 Apr 2021 by RichardK151
Hi, i have a partially transparent windowless ATL control. The control is hosted in a third party container, which i can't change. When the control paints via OnDraw, the transparent part is flickering (showing a black background in the...
27 Apr 2021 by KarstenK
Dont set the background to transparent. Read this Understanding OnPaint() article to better understand the drawing system. You must return TRUE from OnEraseBkground. Best is to drawn an own background color in it. Be sure that no reload or...
2 Nov 2020 by MyOldAccount
I have managed to make it work. For those who face the same issue, here is what I have done: Wizard generates code similar to below: Header file: #pragma once // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++ ...
30 Oct 2020 by Shao Voon Wong
Microsoft has put back the ActiveX option in the Class Wizard in Visual Studio 2019 version 16.8 which is in Preview. The last time I worked with ActiveX was 15 years ago. ActiveX controls are easy to consume in VB6 and C# but not Visual C++....
26 Sep 2019 by Member 14373667
#ifndef APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // Generated from the TEXTINCLUDE 3 resource. // 1 TYPELIB "TellerCaptureX.tlb" ///////////////////////////////////////////////////////////////////////////// #endif // not...
26 Sep 2019 by KarstenK
Read about the documentation yourself but you need to provide 2 different versions of the tlb for 32 and 64 bit platform. One possible solution to guard these tlbs with some x64 macros. Like #ifdef _X64_ // or your x64 define 1 TYPELIB "TellerCaptureX64.tlb" #else 1 TYPELIB...
26 Sep 2019 by CPallini
A quick and dirty search result: TIP: Adding a typelibrary as a resource to a project[^].
24 Sep 2019 by Member 14373667
I have 2 ActiveX Control Dll projects 1. TellerCaptureX --> Existing from beginning in the project This project is included from beginning into main project, and initially project was configured with 32-bit only. Now for enhancement we need to configure project for 64-bit as well. It is...
24 Sep 2019 by KarstenK
Hard to explain: the file is missing. You need to create it. Like explained in stackoverflow or with some others tools like the IDL compiler. 32-bit or 64-bit are build platforms so there are different build scripts. Maybe you need to copy some 32-bit build settings to the 64-bit build settings.
23 Sep 2019 by Member 14373667
When I am adding header file from existing project to new ActiveX Control dll project, getting below error : error C2011: 'ProfileSettings' : 'class' type redefinition. Strange thing is that, same header file included into another projects as well, for which during build not getting such...
23 Sep 2019 by Member 14373667
Hello All, Thank you for your help, I understood issue. In new project, there was reference of one existing project. Referenced project also included file with "ProfileSettings" Class. After setting below Property to false, able to build successfully : Common Properties --> References -->...
23 Sep 2019 by Rick York
Here's an experiment you can try. Instead of the standard include file guard which looks like this:// HeaderFile.h #ifndef HEADERFILE_H #define HEADERFILE_H // ... code goes here #endif // HEADERFILE_H change it to generate an error if it is repeatedly included so you can track down the...
23 Sep 2019 by Richard MacCutchan
We annot help without proper detailed information. You need to check the line where the error occurs to and search other files for the duplicate. Visual Studio can search your entire project for references.
23 Sep 2019 by CPallini
Could be a name clash. Try to change the name of the class or, better, enclose it in a namespace. By the way, the compiler message should indicate where it was already defined.
20 Jun 2019 by Member 14150748
Greetings. It's me again. Been trying to solve this thing since almost a month ago. Hope you could give me a hand: I installed Delphi 7, because I need to work in a project for a client. The program is already made by someone else, just gonna need to add new features. It uses third party dlls...
20 Jun 2019 by Member 14150748
Finally solved. A dll was missing. That one is installed by another application made by the same people who did the one I'm working on. Not sure which one is, I'll try to find out later. We found out about that error because when my boss was working over an empty virtual machine (XP) he...
18 Jun 2019 by Member 14150748
I made a small project in C# to test the dll using System; using AETK_LIB; //
17 Jun 2019 by CHill60
Have a look at the SysInternals suite of tools Sysinternals Suite - Windows Sysinternals | Microsoft Docs[^]. I think the one you want is ProcMon - you will be able to tell what the COM object is trying to access and work out exactly what is missing. Also ensure that you are using the right...
14 May 2019 by Member 14135667
Hi, i'm using the "Acrobat Reader" COM-Component in a Form, for displaying PDF-Components. When the Form is closed, an Access Violation Exception is thrown. // Auto generated Code in Form.Designer.cs /// /// Clean up any resources being used. /// ...
14 May 2019 by Gerry Schmitz
base.Dispose(disposing);// Here the Exception is thrown You've "disposed" of the (unmanaged) "component" (component.Dispose()), and are now attempting to dispose the live managed form itself ... from the looks of it. Not logical.
17 Apr 2019 by Member 14289051
// Execute SQL to fetch Account records var db = new ActiveXObject("ADODB.Connection"); var rs = new ActiveXObject("ADODB.Recordset"); var sum = 0; db.Open(DB_NAME); rs.Open(sql, db); What I have tried: This is a small app that retrieves data from MS Access database stored on my...
17 Apr 2019 by Member 14289051
Thank you guys, I appreciate that. I have to rewrite the application.
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.
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 #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.
6 Apr 2019 by Arkadeep De
Kindly search in Google before posting your question. Here is one of the links where you might find your answer. I am sorry, here in the following link, answer is negative. how to launch a window application(.exe) from a web page with cross browser support[^]
6 Apr 2019 by DevCodeproject1
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.I want any alternative to achieve this in Chrome. What I have tried: I tried using Process class but didn't solve the issue
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...
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....
4 Mar 2019 by Dave Kreskowiak
Usually, that means a .DLL that is used by the SQLDMO library is missing. It may not be an SQLDMO .DLL. It could be a dependency it has on another library. Another possibility is the .DLL's are there but they could be COM-based and not registered on the machine. What does the code look like...
4 Mar 2019 by aelkatatny@eg
Hi, i have a big application written in vb6 sp6, and i am the support guy. i know it's an obsolete version but really it's a very good application. i have a written function to get the servers list by using the SQLDMO following is the code: Dim Names As SQLDMO.NameList Dim SQLApp as...
2 Mar 2019 by Member 12690141
No matter of wasting time, this helps not. I want to use it for my own purposes. So,can anybody help? Miro
2 Mar 2019 by Member 12690141
Hello! I want to start coding by Auto C which uses ActiveX Control Pad for designing forms like in VB editor. Editor and Auto C are installed. I tried to install ActiveX Control Pad - but on Windows 10 Pro 1809 x64... used compatibility settings with XP SP3 first and Windows 95 2nd incl. run as...
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...
20 Dec 2018 by #realJSOP
Nobody uses ActiveX (aka ActiveExcrement) if they can possibly avoid it. It's insecure. Find another way.
20 Dec 2018 by Member 13934734
I used C ++ to create an ActiveX ocx file that performs simple arithmetic operations. I created an inf file to install ocx and compressed the inf file and ocx file into a cab file. I have to install the cab file on my PC without using the internet browser. What I have tried: To install the cab...
12 Dec 2018 by OriginalGriff
Start here: The Essentials for Using COM in Managed Code | Referencing a COM Component in Visual Studio .NET | InformIT[^]
12 Dec 2018 by Member 11940591
I am working on one project where I have to use Classes and Functions of ActiveX EXE in my VB.net application. I know how to use ActiveX components in code but Don't know how to use classes, functions and Object in code. so please help me regarding the issue. Thanks. What I have tried: I...
5 Dec 2018 by SuperMiQi
{E19C7100-9709-4DB7-9373-E7B51...
5 Dec 2018 by Member 12922974
I too am looking for any information about this interface, but I tell you, it´s not related just to PowerPoint or the problem you are having. I am developping an Excel C++ Addin an it is called for this interface. As I have no information I don´t implent it, and everything works fine.
7 Nov 2018 by Member 13934734
Hi. There. I created a simple C ++ ocx file, and created an HTML file to validate ocx. I confirmed that ocx was successfully registered in the registry and confirmed that ocx was normally invoked in the test HTML to launch the AfxMessageBox(). However, I wanted to call ocx directly in C #. ...
7 Nov 2018 by KarstenK
You can do it via Importing an ActiveX control into Visual Studio. Or create an OCX in C# with an underlying dll which contains your ocx code. Remark: it should be easy to add a dll target to your existing ocx project.
9 Oct 2018 by KarstenK
It sounds like Richards solution is right. You must ask the sender what app was used to add this element into the presentation. I guess that it could be some data obejct from an app which the originator used. Google says that it is MS Sharepoint. The simplest solution would be that it would be...
9 Oct 2018 by P.Gnanaraj
We have ATL COM activex DLL . It exposes properties and events . We have interop DLL created on this ActiveX DLL . We are able to access the properties and events of ActiveX control in C# .NET Winform application . In a MFC dialog based application, when we add the ActiveX control we are able...
8 Oct 2018 by Richard MacCutchan
Talk to the person who sent you the file.
5 Oct 2018 by SuperMiQi
Hello Everyone, I have an issue the usage of ActiveX in Word 365. I can copy/paste the ActiveX control onto Word 365 but when I apply a save / load actions, it does not work as expected. Based on the animation video showing the effect, you will see the document save works as expected and invoke...
28 Sep 2018 by Member 13999828
I am a little bit perplexed by this: I can insert the control fine, but from there on the instructions don't work for me. The following: 6: Right click to control and select Add Variable 7: Enter m_MediaPlayer (or whatever you want) as the control variable without changing any other...
21 Sep 2018 by SuperMiQi
Hello Everyone, I hope you are doing well ? I have an issue with the mfc activex control I implemented some years ago. When I paste it with his data onto powerpoint, I can manipulate it like being pasted on a winform but the issue is the storage onto pptx file format. When I reload the pptx...
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) |...
30 Aug 2018 by Mehdi Gholam
ASP.net runs on the server so users can't use client side devices with it. To use client side smart card readers you need to have the code run on the client browser via javascript which highly doubtful that it can be done.
30 Aug 2018 by Jitendra Tripathi12
i have already a windows based Application for Read and Write on Smart Card By Using the Smart Card Reader by Using the C# Application, Now We Want the Same Functionality on Web Application. But i am not able to Access by Smart Card Reader on Web Application. please help me provide the sample...
16 Aug 2018 by Member 9717073
You can do it by using the Windows Protocol Handler mechanism. Check out the below StackOverflow link: windows - How to launch an application from a browser? - Stack Overflow[^]
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...
28 Jun 2018 by Member 13764480
Hi, As soon as a user logs in to a website, his screen should automatically be video recorded. This should happen without the user having to click any button or seeing any application screen that captures screen. When he logs out or closes the webpage or browser, recording should stop and the...
21 Jun 2018 by Rohit-7
So far this is achievable on internet explorer (IE) via following code,function OpenExe() {var cmdShell = new ActiveXObject("WScript.Shell");var myPath = "\"D:\\New Folder\\myExe.exe\"" //or any other file!cmdShell.Run(myPath , 1, true); //setting 1 will launch the exe in...
5 Jun 2018 by Jaroslav Mitrovic
Hi. I just tried to do a syntactical conversion "out of my Memory"... :) In VB You don´t end the command with a Semicolon, just by a NewLine (VbCrLf). In VB 'var' is 'Dim', and its Syntax... And the Functions should return something, thats why you set at the FunctionHeader not only Parameters,...
14 May 2018 by Matthew Menard
I'm trying to add a newline character to a string that I want to print out to a status box in my ActiveX control. The status box is a multiline TextBox. I've tried adding "\r\n" to the string, I've tried add System.Environment.NewLine to the string, but nothing seems to work. Not sure what else...
14 May 2018 by Rajesh Anuhya
Hello, As mentioned in your question, it's multiline text box, you can try something like below. multilinetextbox.Text = BitConverter.ToString("Code \r\n Project"); --RA
10 May 2018 by Member 1003306
Hi, we are using ActiveX/COM connection from our applications (some in C++, some are Delphi, Win32) to manage ArCon (Windows CAD application). The connection (AfxConnectionAdvise...) behaves fine on Windows XP, there are some minor issues on Windows 7 and on Windows 10 there are major issues...
22 Jan 2018 by MikeTheFid
I am researching a situation where we need to access client-side ActiveX components to capture fingerprints (using equipment attached to the client machine) from an ASP.NET web application. The ActiveX components are installed on the client and properly registered. In other words, these...
11 Jan 2018 by nanakhoa
Hi,I'm trying to deploy my ActiveX Control DLL developed in ATL project in VS2008 (I'm new to this kind of deployment). Following some tutorials, I'm trying to create msi file for my control using Setup Project in VS2008. I've set the Register property of Primary Output to vsdrpCOM....
11 Jan 2018 by KHEMRAJ_UDR
I had same issue and changed Register Property 'vsdrpCOM. ' to 'vsdrfCOMSelfReg' and issue resolved. Please try this.
15 Dec 2017 by AnujAero
Hi, I need help in getting the value for the activeX knob rotation in Microsoft Visual Studio MFC application. I am able to get the data for each knob rotation step, but i need to get the Knob value once the knob rotation in completed not the intermediate values. Can anyone suggest any...
15 Dec 2017 by Richard MacCutchan
Knob ActiveX[^]
30 Oct 2017 by Dave Kreskowiak
You don't. IE and Firefox were the only browsers that supported ActiveX. You have no choice but to use software that is installed on the workstations if you're going to support more browsers. FF pulled support for ActiveX, I think, a year ago and IE's replacement, Edge, doesn't, and never...
30 Oct 2017 by Subratp10
I’ve a legacy VC++ ActiveX dll with UIs. This ActiveX dll can be used only in the same workstation but through browser (IE only, because of its other dependencies. Now there is a requirement from the customers that it should be accessible and behave same from other browsers like Chrome,...
7 Jul 2017 by _Maxxx_
I have a SP using MSXML2 to call a Web Service.It is working on my local machine using SQL Server 2008R2It is not working on my server, using SQL Server 2014.Running the same MSXML2 from a Javascript program from the command line, works on both local machine and server.The SQL Server...
18 Apr 2017 by Shine Ashraf
Upgraded our application to 64 bit and updated the usercontrol (which uses Interop.AcroPDFLib.dll for showing PDF docs) project build platform target to 'Any CPU'. After that application is crashing while loading the PDF user control. What I have tried: Installed Adobe reader DC and created...
18 Apr 2017 by Wessel Beulink
Adobe ActiveX controls you need to show this in the usercontrol? I would suggest in first place to just let the shell-command handle the default windows environment pdf opener so you don't have to do this in you control. But of course I can't make that decision for your application. If you...
3 Mar 2017 by Richard MacCutchan
You already posted this at I have OCX created in VC++ that has many functions. OCX has got some GUI. I want to use those functions in C# web application without loading OCX. i.e. I want to extract only functions from OCX. Can anyone please suggest how this can be done? - Managed C++/CLI...
20 Feb 2017 by Antonio Bejar
I built a nice ActiveX control using .net 4.6.1. When using it in a html page inIE11 no problem at all.Then I used the same page using the WebBrowser control, and configuration problems appear.I'm sure webbrowser controls is configurated from IE, isn't it?Please, I need help.Thank...
5 Jan 2017 by Dave Kreskowiak
Where did you get it from? Ask them.If it was an article here, ask in the forum at the end of the article.
7 Dec 2016 by Member 12892648
Hi everyone!!I'm working on an intranet website where the name of the person connected is display. Like, if John Doe connect to his session, i want to recover is windows username, so, when his open the portal, John Doe is display with all information without a login page.I try the...
7 Dec 2016 by OriginalGriff
Pretty much, no.javascript - Windows username without using Activex Control - Stack Overflow[^]
3 Dec 2016 by Member 10477163
I used the MSDN ActiveX Template Library (ATL) Tutorial to build the "Polygon" ActiveX Control. I followed the instructions on the MSDN Tutorial, and everything went well until I added the "PolyCtl" control to the project. After adding the PolyCtl control, it generated PolyCtl.cpp and PolyCtl.h...
3 Dec 2016 by Arthur V. Ratz
You would better to use the previous version of Visual Studio such VSS6.0, in which there's no IntelliSense, since the ATL is old for Visual Studio 2015 intended for C#.NET programming.
12 Oct 2016 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.
3 Oct 2016 by Itz.Irshad
A MFC ActiveX Control was developed in VS2005. The control is used in WinForms application.I would like to capture the touch events in that control which will be used in Windows Tablet (Windows 8).Could anybody help me out how to resolve this error ?Thanks,What I have tried:I...
31 Aug 2016 by Pratik 10834354
Hi all,I have created ActiveX Control that will convert file into bytes array.I am consuming that activeX in my web application using javascript.In IE8 I am able to get byte array for the file but above IE8 it's giving undefined while returning.I am posting my javascript code...
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...
27 Jun 2016 by Member 11776147
I am trying to generate a .net ActiveReport chart with 3 different seriesSeries1 type = line, series2 type = line and series3 type = bar. Datatable has been used to pull data from database and then each column data is converted into list collection so as to use DataBindXY() method. Problem, I...
18 Jun 2016 by bernova
I override the printpageeventhandler as follow :public class MyPrintDoc : PrintDocument { protected void MyOnPrintPage(PrintPageEventArgs args) { PagePrintHandler(this, args, this.arr); }and call as follow :private void...
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...