比如你的结构体的一个变量m_data,则生成字符串的过程如下:
CString strValue;
strValue.Format(" <i>%d </i> <s>%s </s> <u>%s </u> <c>%d </c> <o>%s </o>", m_data.i, m_data.s, m_data.u, m_data.c, m_data.o);
然后就发送这个strValue串就行了。
send了的是字符串,接收的时候,也肯定是用char来接收,那又怎么转换给结构了