I have solved the problem... the code is below:: thank you.. for your cooperation...
void CServerClass::OnReceive()
{
WCHAR *pBuff=new WCHAR[100];
int iBuffSize=99;
int Rcvd;
CAsyncSocket rr;
Rcvd = m_client.Receive(pBuff,100);
if(Rcvd==SOCKET_ERROR)
{
}
else
{
pBuff[Rcvd]=NULL;
CString lvstrRecev(pBuff);
int nLength;
nLength = lvstrRecev.GetLength();
CString strTemp;
for(int i=0;i<nLength/2;i++)
{
strTemp += lvstrRecev.GetAt(i);
}
m_lrecv.AddString(strTemp);
UpdateData(FALSE);
}
}