#ifndef _READER_API_
#define _READER_API_
#ifdef _DLL_EXPORT_
#define READER_API __declspec(dllexport)
#else
#define READER_API __declspec(dllimport)
#endif
#ifdef __cplusplus
extern "C"
{
#endif
READER_API int rfidRead(INT32U serial_com_port,INT16U bank,INT16U offset,INT16U count,char* data);
READER_API int rfidWrite(INT32U serial_com_port,INT16U bank,INT16U offset,INT16U count,char* data);
#ifdef __cplusplus
};
#endif
#endif
C/C++寫DLL時頭文件的一般格式
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
指針、const 和 typedef
一、const int* p 和 int* const p const int* p; p是指向int類型變量的指針,p所指向的變量爲const類型。p指向的變量不能修改。 int* c
JakeMiao
2020-07-08 08:38:26
標準庫vector類型簡介
JakeMiao
2020-07-08 07:54:46
C/C++常用庫函數收集
這篇博客用來收集C/C++中一些常用的庫函數。 1、字符判斷函數 isalnum() 如果參數爲字母數字,則返回ture isalpha() 如果參數爲字母,則返回ture
JakeMiao
2020-07-08 07:54:34
C++(三)const char * a1和 char const * a2
kudingcha5279
2020-07-07 23:52:14
const char * 與 char * const
游鸿
2020-07-03 01:22:31
構造析構相關以及構造順序,String類的實現
beibaoke910
2020-07-02 05:37:48
在mfc中使用cef實現webkit的瀏覽器(一)-準備工作
long12310225
2020-07-01 15:04:34
Unicode字符與多字節字符的轉換
long12310225
2020-07-01 15:04:23
WinInet編程
long12310225
2020-07-01 15:04:22
DLL如何導出類?
long12310225
2020-07-01 15:04:22
VC獲取打印機與打印作業的狀態
long12310225
2020-07-01 15:04:21
成員函數在內存中的分佈
走过_冬天
2020-07-01 13:50:51