You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ide/adding-a-class-from-an-activex-control-visual-cpp.md
+3-8Lines changed: 3 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,14 @@
1
1
---
2
2
description: "Learn more about: Add a class from an ActiveX control"
3
3
title: "Add a class from an ActiveX control"
4
-
ms.date: "03/01/2022"
4
+
ms.date: 04/28/2023
5
5
f1_keywords: ["vc.codewiz.class.axcontrol"]
6
6
helpviewer_keywords: ["ActiveX controls [C++], adding classes", "classes [C++], creating", "ActiveX Control Wizard", "add class from ActiveX control wizard [C++]"]
7
-
ms.assetid: 729fcb37-54b8-44d5-9b4e-50bb16e0eea4
8
7
ms.custom: devdivchpfy22
9
8
---
10
9
# Add a class from an ActiveX control
11
10
12
-
Use this wizard to create an MFC class from an interface in an available ActiveX control. You can add an MFC class to an [MFC application](../mfc/reference/creating-an-mfc-application.md), an [MFC DLL](../mfc/reference/creating-an-mfc-dll-project.md), or an[MFC ActiveX control](../mfc/reference/creating-an-mfc-activex-control.md).
11
+
Use this wizard to create an MFC class from an interface in an available ActiveX control. For this wizard to be available, you must have Visual Studio 2019 or later, and be in one of the following project types: [MFC application](../mfc/reference/creating-an-mfc-application.md), [MFC DLL](../mfc/reference/creating-an-mfc-dll-project.md), or [MFC ActiveX control](../mfc/reference/creating-an-mfc-activex-control.md).
13
12
14
13
> [!NOTE]
15
14
> You don't need to create your MFC project with Automation enabled to add a class from an ActiveX control.
@@ -26,14 +25,10 @@ An ActiveX control is a reusable software component based on the Component Objec
26
25
27
26
In the wizard, you can add more than one interface in an ActiveX control. You can also create classes from more than one ActiveX control in a single wizard session.
28
27
29
-
You can add classes from ActiveX controls registered in your system, or you can add classes from ActiveX controls located in type library files (.tlb, .olb, .dll, .ocx, or .exe) without first registering them in your system. For more information about registering ActiveX controls, see [Registering OLE controls](../mfc/reference/registering-ole-controls.md).
28
+
You can add classes from ActiveX controls registered in your system, or you can add classes from ActiveX controls located in type library files (`.tlb`, `.olb`, `.dll`, `.ocx`, or `.exe`) without first registering them in your system. For more information about registering ActiveX controls, see [Registering OLE controls](../mfc/reference/registering-ole-controls.md).
30
29
31
30
The wizard creates an MFC class, derived from [CWnd](../mfc/reference/cwnd-class.md) or from [COleDispatchDriver](../mfc/reference/coledispatchdriver-class.md), for each interface you add from the selected ActiveX control.
32
31
33
-
## In this section
34
-
35
-
-[Add class from ActiveX control wizard](#add-class-from-activex-control-wizard)
36
-
37
32
## Add class from ActiveX control wizard
38
33
39
34
Use this wizard to add an MFC class from an available ActiveX control. The wizard creates a class for each interface you add from the selected ActiveX control.
0 commit comments