fast/Plugin/Plc/PluginPlc.h
2025-01-20 10:30:01 +08:00

45 lines
737 B
C++

// Vcs-Client.h : PROJECT_NAME 应用程序的主头文件
//
#pragma once
#ifndef __AFXWIN_H__
#error "在包含此文件之前包含“stdafx.h”以生成 PCH 文件"
#endif
#include "resource.h" // 主符号
#include "CCEXPipeLib.h"
#define WM_MSG_ROBOT_TO_MAIN WM_USER+2000
// CVcsClientApp:
// 有关此类的实现,请参阅 Vcs-Client.cpp
//
class CPluginPlc : public CWinApp
{
public:
CPluginPlc();
// 重写
public:
virtual BOOL InitInstance();
public:
void ReadConfigFromIni();
public:
CString m_strModulePath;
ST_CAN_DEVICE m_stCanDevice;
// 实现
CString SendMsg2Platform(CString strReceiver, int nMsgType, Json::Value param = NULL);
DECLARE_MESSAGE_MAP()
};
extern CPluginPlc theApp;
extern CCEXPipeClientBase* g_pstPipeClient;