📄 command.h
字号:
#ifndef _COMMAND_H_
#define _COMMAND_H_
#include <windows.h>
#ifdef CASHCODE_EXPORTS
#define _CASHCODEDLL_API _declspec(dllexport)
#else
#define _CASHCODEDLL_API _declspec(dllimport)
#endif
class _CASHCODEDLL_API CCommand
{
public:
char* ToString(char*); // Formats internal frame data into a string, containing its hexadecimal representation
void SetByte(BYTE,int); // Sets specified byte in the buffer to the supplied value
void SetCode(int); // Sets transmission error code to the specified value
CCommand(LPBYTE,int,int iLen=0);// Constructor performing initialization of all object's variables
int GetCode(); // Retrieves communication error code
LPBYTE GetData(); // Retrieves pointer to the frame data
CCommand(); // Default constructor
virtual ~CCommand(); // Default destructor
private:
int iCode; // Frame transmission error code. Valid only after the frame was transmitted or received
BYTE Data[4096]; // A buffer containing frame data
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -