导出DLL函数定义的三种方法

1. 使用__declspec(dllexport)

Header File

 

2. 使用def文件 exports

EXPORTS
   SetKeyboardHook

3. 在link中使用/EXPORT 说明

#pragma comment(linker,"/EXPORT:SetKeyboardHook")

posted @ 2010-06-07 22:53  D_Arthas  阅读(236)  评论(0编辑  收藏  举报