如何在"Microsoft Visual Studio Community 2015"的现有"C++ Project"中创建新"header file (.h)"?

How do I create a new "header file (.h)" in an existing "C++ Project" in "Microsoft Visual Studio Community 2015"?

本文关键字:创建 Project header C++ file Visual Microsoft Studio Community 2015      更新时间:2023-10-16

我可以通过打开工作室的单独实例来创建这样的文件,但是我无法让我的项目识别为侧面面板中的基本文件。我希望通过使用Studios自己的UI创建文件来答案,但是如果可能的话,将其导入也可以。

注意:我需要2015年Visual Studio年的答案。我读到自2012/2013年以来已经进行了重大计划更改,因此此类解决方案可能无法正常工作。

右键单击项目Explorer中的项目(通常在右侧),然后选择Add new item...

在那里选择C 标头文件。