visual studio 2012 adding new header file

前端 未结 3 1138
猫巷女王i
猫巷女王i 2021-02-07 09:10

In Visual Studio 2012 (C++ environment), for a Win32 console application, I need to include a new header file to my project. I tried copying the files in the project\'s location

3条回答
  •  旧巷少年郎
    2021-02-07 10:16

    The easiest way to do this is:

    1. Right click on the header file (to be included) in the Solution explorer.
    2. General->"Excluded from the build"
    3. Select "No" from the drop down list
    4. Click "OK".

    In VS2012, just using '"' instead of '<>' around the header file in include also works.

提交回复
热议问题