12345678910111213141516171819202122232425262728 |
- // SERIAL_IMPL
- #ifndef _AUTOROBOT_H_
- #define _AUTOROBOT_H_
- #ifdef SERIAL_IMPL
- #define SERIALDLLEXPORT _declspec(dllexport)
- #else
- #define SERIALDLLEXPORT _declspec(dllimport)
- #endif
- // --以下宏定义--;
- // --以下是自定义消息,线程PostMessage出来的--;
- #define WM_SHOWREADDATA WM_USER + 1122
- #define WM_SHOWWRITEDATA WM_USER + 1123
- #include "SerialFactory.h"
- // --导出对象\变量\函数--;
- extern SERIALDLLEXPORT CSerialFactory *pSerialImpl;
- extern SERIALDLLEXPORT vector <STRecvMessage> g_vtRecv;
- extern SERIALDLLEXPORT CRITICAL_SECTION g_cs_vt; // 数据池操作的临界值;
- extern SERIALDLLEXPORT void CreateSerialImpl(void);
- extern SERIALDLLEXPORT BOOL GetMainWnd(HWND &hwnd);
- #endif
|