DBInterface.h 990 B

123456789101112131415161718192021222324252627282930313233
  1. // DBInterface.h: interface for the DBInterface class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_DBINTERFACE_H__E761F9FE_39EE_40A2_88D1_7FCBB97A145A__INCLUDED_)
  5. #define AFX_DBINTERFACE_H__E761F9FE_39EE_40A2_88D1_7FCBB97A145A__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "DBDefine.h"
  10. #include "DBConnPool.h"
  11. #if defined(__cplusplus)
  12. extern "C"
  13. {
  14. #endif
  15. // Initialize RS Receiver
  16. RFIDAPI DWORD InItDBConnPool(LPCSTR strDstAddress, LPCSTR strUsername, LPCSTR strPassword, LPCSTR strDBName,int minConn,int maxConn);
  17. //数据库对外接口,和自己具体的数据库字段相关,这是对外使用的接口,自己可以添加
  18. //此接口实际调用的是连接池内部实现的接口,
  19. RFIDAPI void GetSubmitInfo(vector<SOAP_SUBMIT_SMS> &vecsoapSms);
  20. RFIDAPI void InsertHistory(int id);
  21. // Initialize Sock Receiver
  22. #if defined(__cplusplus)
  23. }
  24. #endif
  25. #endif // !defined(AFX_DBINTERFACE_H__E761F9FE_39EE_40A2_88D1_7FCBB97A145A__INCLUDED_)