AutoRobot.h 682 B

12345678910111213141516171819202122232425262728
  1. // SERIAL_IMPL
  2. #ifndef _AUTOROBOT_H_
  3. #define _AUTOROBOT_H_
  4. #ifdef SERIAL_IMPL
  5. #define SERIALDLLEXPORT _declspec(dllexport)
  6. #else
  7. #define SERIALDLLEXPORT _declspec(dllimport)
  8. #endif
  9. // --以下宏定义--;
  10. // --以下是自定义消息,线程PostMessage出来的--;
  11. #define WM_SHOWREADDATA WM_USER + 1122
  12. #define WM_SHOWWRITEDATA WM_USER + 1123
  13. #include "SerialFactory.h"
  14. // --导出对象\变量\函数--;
  15. extern SERIALDLLEXPORT CSerialFactory *pSerialImpl;
  16. extern SERIALDLLEXPORT vector <STRecvMessage> g_vtRecv;
  17. extern SERIALDLLEXPORT CRITICAL_SECTION g_cs_vt; // 数据池操作的临界值;
  18. extern SERIALDLLEXPORT void CreateSerialImpl(void);
  19. extern SERIALDLLEXPORT BOOL GetMainWnd(HWND &hwnd);
  20. #endif