1. 程式人生 > >在visual studio工程設定中增加巨集定義的方法

在visual studio工程設定中增加巨集定義的方法

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