char cmd[3]={'p','w','d'};
int n=send(m_server,cmd,3,0);
CString temp;
temp.Format("%d",n);
MessageBox(temp); int index = 0,                      // Integer index
    iReturn;                        // Return value of recv function
char szClientA[200];                // ASCII string 
TCHAR szClientW[200];               // Unicode string
TCHAR szError[200];
iReturn = recv (m_server, szClientA, sizeof (szClientA), 0);    // Check if there is any data received. If there is, display it.
if (iReturn == SOCKET_ERROR)
{
//wsprintf (szError, TEXT("No data is received, recv failed.")
                //TEXT(" Error: %d"), WSAGetLastError ());
MessageBox (TEXT("Client"));
// break;
}
else if (iReturn == 0)
{
MessageBox (TEXT("Finished receiving data"));
// break;
}
else
{
      // Convert the ASCII string to a Unicode string.
for (index = 0; index <= sizeof (szClientA); index++)
        szClientW[index] = szClientA[index];      // Display the string received from the server.
MessageBox (szClientW, TEXT("Received From Server"), MB_OK);
//m_status=szClientW
}请高手执教
或者给个例子吧!!!