拿inet_addr(char*) 函数为例! USES_CONVERTION; CString strServerIp; inet_addr(W2A(strServerIp.GetBuffer()));/ OK 了!