?? senddata.cpp
字號:
// SendData.cpp: implementation of the CSendData class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
//#include "mctmis.h"
#include "SendData.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CSendData::CSendData()
{
n_PageSize=0;
}
CSendData::~CSendData()
{
}
BOOL CSendData::Conversion()
{
BYTE temp;
int i;
m_SendBuf.RemoveAll();
m_SendBuf.Add(0x76);
m_SendBuf.Add(0x76);
m_SendBuf.Add(0x76);
switch(m_Type)
{
case 0x11://寫入頁
m_SendBuf.Add(0x11);
m_SendBuf.Add(m_HexPage.GetAt(n_PageSize));
for (i=0;i<64;i++)
m_SendBuf.Add(m_HexData.GetAt(n_PageSize*64+i));
break;
case 0x12://讀出頁
m_SendBuf.Add(0x12);
m_SendBuf.Add(m_HexPage.GetAt(n_PageSize));
break;
}
return TRUE;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -