How to fix the errors? - C3861 AtlAdvise Not found

Changu Lee 0 Reputation points
2023-05-12T06:59:37.7+00:00

Hi,

I installed VS2022 and tried to update my project build from VS2015 C++14 to VS2022 C++20.

I modified some codes that did not match the recent coding style.

Finally, I got an error that C3861. 'AtlAdvise': Not found.

I checked the atlcomcli.h file in the atlmfc include folder and the path is basically included in the solution.

How can I fix this problem?

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,600 questions
{count} votes

1 answer

Sort by: Most helpful
  1. RLWA32 42,081 Reputation points
    2023-05-12T09:20:27.7133333+00:00

    ATL's Connection Point Global Functions are declared in the atlbase.h header file.

    Using VS2022 I built a project using AtlAdvise and AtlUnadvise without error. The project was set to use C++20. Builds were successful with either the /permissive- or /permissive compiler option setting.