在Solution Explorer中鼠标右键点击其project之后,Configuration(Release)->Configuration Propertity ->C++ ->Preprocessor ->Preprocessor Definitions在此处增加你想要的宏。