i got this code..
the Receive function requires wsClient.Receive(void *lpbuf,strlen of the data, and nflags)Code:void CChateXDlg::OnReceive(int nErrorCode)
{
if(nErrorCode==0)
{
char Data[1000];
wsClient.Receive(Data,1000,0);
m_re1+=Data;
UpdateData(FALSE);
}
}
problem is that i dont want to declare 1000 chars char i want it to take only how much it needs, any ideas how to do that ?
thanks