modbusrtu.h 724 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // MGE.h : MGE DLL 的主头文件
  2. //
  3. #pragma once
  4. #ifndef __AFXWIN_H__
  5. #error include 'stdafx.h' before including this file for PCH
  6. #endif
  7. #include "CommAsyn.h"
  8. typedef struct __BASIC_STRUCT
  9. {
  10. int nAddr;
  11. RESPONSE_STRUCT tagStatusStruct;
  12. }BASIC_STRUCT, *PBASIC_STRUCT;
  13. typedef struct __COM_STRUCT
  14. {
  15. int nCommPort;
  16. int nAddr;
  17. CCommAsyn* pComm;
  18. }COM_STRUCT, *PCOM_STRUCT;
  19. //extern vector<__BASIC_STRUCT> g_vtReadBasicInfo;
  20. extern vector<__COM_STRUCT> g_vtComStruct;
  21. extern DWORD g_dwOnlineTick;
  22. // CMGEApp
  23. // 有关此类实现的信息,请参阅 MGE.cpp
  24. //
  25. class CModbusrtuApp : public CWinApp
  26. {
  27. public:
  28. CModbusrtuApp();
  29. // 重写
  30. public:
  31. virtual BOOL InitInstance();
  32. DECLARE_MESSAGE_MAP()
  33. virtual int ExitInstance();
  34. };