using #define one time for multiple source files - by user354967 is there a way in visual c++ to #define something in a cpp file and have it defined in other cpp files as well? Read the article