Can't find MFC ActiveX Wizard in Visual Studio 2019 (to add wrapper class from ActiveX Control)

simonx 131 Reputation points
2021-11-09T13:31:37.427+00:00

I have a C++ MFC application, developed using Visual Studio 2019. I am trying to make use of an ActiveX control supplied by a third party. I need an MFC wrapper class to allow me to interact with the ActiveX control. According to a recent page I found, the necessary wizards for creating such a wrapper class were re-introduced to Visual Studio 2019 (having been previously removed) in version 16.8. I have version 16.11.4 but I can't find them anywhere!

--- Details ---

The following page is called "Add a class from an ActiveX control":

https://learn.microsoft.com/en-us/cpp/ide/adding-a-class-from-an-activex-control-visual-cpp?view=msvc-170

It says there that the MFC wizard for creating an MFC class from an interface in an available ActiveX control, was depreciated in Visual Studio 2017 and would be removed from future versions of Visual Studio. However, I then found this page ("Typelib and ActiveX now supported in MFC Wizards") dated Oct 23rd, 2020:

https://devblogs.microsoft.com/cppblog/typelib-and-activex-now-supported-in-mfc-wizards/

In that page, the author (a Microsoft C++ Team Blogger) says that Microsoft has changed its mind (listened to feedback) and decided to put them back. The wizards are MFC ActiveX Wizard: Creates an ActiveX control and MFC Typelib Wizard, which allows you to add a class from a typelib.

Just to be clear: I do not want to create an ActiveX control. I want to use an ActiveX control supplied by a third party (i.e. I need a WRAPPER class for an ActiveX control). I believe that one or both of these wizards are what I need. So where are they? How do I use them? I cannot find them anywhere. Apparently they were reintroduced in Visual Studio 2019 version 16.8. I have Visual Studio 2019 version 16.11.4.

The blogger urges us to try them out. Well I'd love to. I just wish he'd told us where they are! The obvious first place to look is when you click "Add Class" on the Project menu. But there's nothing like these wizards there. Nor can I find them anywhere else. So where are they? Does anyone know?

All help much appreciated.

Developer technologies | C++
0 comments No comments
{count} votes

Accepted answer
  1. RLWA32 49,636 Reputation points
    2021-11-09T14:12:00.427+00:00

    The wizard can be found in the Add New Item selection -

    147844-mfc-axwizard.png


1 additional answer

Sort by: Most helpful
  1. Brian Kasper 0 Reputation points
    2023-11-14T01:31:41.9+00:00

    Until you asked that question, I was quite sure I did, because I do a lot of development with MFC, but I'll check that and get back to you. Thanks for responding!

    -Brian


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.