在visual studio工程设置中增加宏定义的方法

来源:互联网 发布:平面广告设计软件下载 编辑:程序博客网 时间:2024/05/22 06:15

1. 应用:dll生成工程中导出头文件中有如下定义:

#ifdef VIDEO_QUALITY_DIAGNOSIS_EXPORTING

#define VQD_INTERFACE _declspec(dllexport)

#else

#define VQD_INTERFACE _declspec(dllimport)

#endif


2.方法:在Solution Explorer中鼠标右键点击其project之后,

Configuration(Release)
->Configuration Propertity
  ->C++
    ->Preprocessor
      ->Preprocessor Definitions
在此处增加你想要的宏。


转载文章《在visual studio工程设置中增加宏定义的方法》

http://blog.sina.com.cn/s/blog_78fd98af01014iwq.html