void CMessage::CreateMessage(const MSG_LOGIN& msg_login)
{
int len = sizeof(MSG_LOGIN);
if (m_ctrmsg != NULL)
{
delete m_ctrmsg;
}
m_ctrmsg = new char[len];
memset(m_ctrmsg,0,len);
memcpy(m_ctrmsg,(char*)&msg_login,len );
}
msg_login复制正确 但是m_ctrmsg赋值后 还是空 看不到值
忽然笑