visual studio 2012 adding new header file

前端 未结 3 1132
猫巷女王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:07

    You should add the path to that header to the additional include directories under C/C++ in your project settings. Afterwards, just #include "iGraphics.h" where you need it.

    Don't just move header files around, and don't add existing headers to your project for no good reason. This way, you can easily change versions by just specifying a different folder.

提交回复
热议问题