modbustcp.h 822 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #pragma once
  2. #ifndef __AFXWIN_H__
  3. #error include 'stdafx.h' before including this file for PCH
  4. #endif
  5. #include "ClientSocket.h"
  6. #include "head.h"
  7. typedef struct __BASIC_STRUCT
  8. {
  9. int nAddr;
  10. RESPONSE_STRUCT tagStatusStruct;
  11. }BASIC_STRUCT, *PBASIC_STRUCT;
  12. typedef struct __NET_STRUCT
  13. {
  14. int nNetPort;
  15. int nAddr;
  16. char strIpAddr[32];
  17. CClientSocket* pClientskt;
  18. }NET_STRUCT, *PNET_STRUCT;
  19. //extern vector<__BASIC_STRUCT> g_vtReadBasicInfo;
  20. //extern vector<__COM_STRUCT> g_vtComStruct;
  21. extern vector<__NET_STRUCT> g_vtNetStruct;
  22. extern vector<RESPONSE_STRUCT>g_Response;
  23. // CMGEApp
  24. // 有关此类实现的信息,请参阅 MGE.cpp
  25. //
  26. class CModbustcpApp : public CWinApp
  27. {
  28. public:
  29. CModbustcpApp();
  30. // 重写
  31. public:
  32. virtual BOOL InitInstance();
  33. DECLARE_MESSAGE_MAP()
  34. virtual int ExitInstance();
  35. };