bug? Please upvote- Visual Studio 2022 - ATL Add Method not generating stub function in class - fails CoCreateInstance also

Donald T. Hess 0 Reputation points
2024-04-18T20:26:06.75+00:00

Greetings,

Update: Bug report link: https://developercommunity.visualstudio.com/t/ATL-support-broken-in-VS2022/10642527

I believe ATL method/property generation is broken in Visual Studio 2022. I can add methods and properties to the interface, but when I go to the class, the stub functions are not generated and it refuses to compile.

This is a simple ATL object and not a control. I want to use it to interface .NET running C++ code without using dll imports calls of DLL extensions.1

I tested this on two separate machines.

Pertinent stuff:

Visual Studio Enterprise 2022 (64 bit) Version 17.9.6 with v143 ATL support installed. Project is operating on version 143 (Visual Studio 2022 runtimes)

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,533 questions
{count} votes