19,502
社区成员
发帖
与我相关
我的任务
分享
char * sendBuf;
int sendLen=0;
int m_SendNum = 0;
CString m_SendStr = "";
this->m_cordernumber.GetWindowText(m_SendStr);
sendLen = m_SendStr.GetLength()+4;
sendBuf = new char(sendLen);
WideCharToMultiByte(CP_ACP,WC_COMPOSITECHECK,m_SendStr.GetBuffer(m_SendStr.GetLength())
,m_SendStr.GetLength(),sendBuf,m_SendStr.GetLength(),NULL,NULL);
CopyMemory(sendBuf+m_SendStr.GetLength(),&m_SendNum,4);