Include file into entire project
is there any way to include one file into entire project? I want to have some globals and macros accessible开发者_运维问答 from any file in project, but i do not really write #include in every file TY
Use Visual Studio project settings:
Projekt Properties->Configuration Properties->C/C++->Advanced->Forced Include Files
This will use the specified include files in every source file.
MSDN Forced include
Alternativ:
If you use precompiled headers you could also add your globals/macros to the stdafx.h
精彩评论