MFC 函数调用的问题,两个子函数间如何调用
本人想在ReceiveData函数中,调用show()函数,不知道该怎么写,求高手指导voidCALLBACKReceiveData(void*obj,void*Buff...
本人想在ReceiveData函数中,调用show()函数,不知道该怎么写,求高手指导
void CALLBACK ReceiveData(void *obj, void *Buffer, WORD BufferLength, bool Abnormal)
{
memcpy_s(rev, 100, Buffer, BufferLength);
int i;
for (i = 0; i < BufferLength; i++)
m_receive+= rev[i];
}
bool CSPCoomDlg::show()//显示COM1接收数据内容
{
UpdateData(1);
m_show1+=m_receive+'\t';
m_receive = "";
UpdateData(0);
return 0;
} 展开
void CALLBACK ReceiveData(void *obj, void *Buffer, WORD BufferLength, bool Abnormal)
{
memcpy_s(rev, 100, Buffer, BufferLength);
int i;
for (i = 0; i < BufferLength; i++)
m_receive+= rev[i];
}
bool CSPCoomDlg::show()//显示COM1接收数据内容
{
UpdateData(1);
m_show1+=m_receive+'\t';
m_receive = "";
UpdateData(0);
return 0;
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询