无法打开包含文件:'atlrx.h' in Visual Studio 2019

Cannot open include file: 'atlrx.h' in Visual Studio 2019

我们正在将编译器从 Visual Studio 2013 升级到 Visual Studio 2019。

构建使用正则表达式的项目时出现以下错误: 无法打开包含文件:'atlrx.h':没有这样的文件或目录

安装完ATL/MFC组件后,atlrx.h也不喜欢VS的include目录。 有没有人知道应该安装哪个组件来消除这个错误?

提前致谢。

您应该从 Codeplex 下载 ATL 服务器并安装文件。 ATL Server: Visual C++ shared source software

然后将包含文件复制到硬盘上的文件夹中,Atlrx.h 通常位于 $(VCInstallDir)VC\atlmfc\include 文件夹中。

您应该确保将此路径添加到 visual studio 的包含目录中。