CString m_str1;//.h里文本框控件变量byte byrtebuffer[1024];UpdateData(TRUE);strcpy((char *)bytebuffer,m_str1);