To add new include files to the project:
- Right-click the project name.
- Select
Add >
New Item.
- From the
Visual Studio installed templates, select
Include File.
Note: When an include file is added in this way, the build action is set to "Include File".
To add existing include files:
- Go to
Project Properties >
Compile.
- Put the directory where the include files are in the
Include path field.
- Right-click the project name.
- Select
Add >
Existing Item.
- Select include file.
- Click
Add.
Note: You need to add the include files to the project so that the build process will recognize when an include file has changed and will recompile the appropriate programs. It will also help with features such as find in files.