c/c++創建動態導出庫模版

#ifndef __EXPORT__H_
#define __EXPORT__H_

#if defined WIN32 || defined _WIN32
#if defined DLL_EXPORT
#define EXPORTAPI   __declspec( dllexport )
#else
#define EXPORTAPI
#endif
#endif

extern "C" {
    EXPORTAPI void Say();
}
#endif

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章