i am using eVC++( client side) to get some input from the dialog and send it to a server running as a console application in VC++. I have 2 edit boxes with one of the m having a mapping to a CString object and the other mapped to an integer value.
I need to pack these 2 values and send it as a CString object to my Send function.
I need to convert my integer valriable m_value to CString object so that i can concatenate the 2 CStrings.
What i tried to was :
m_strMessage = m_str + str;
// Send message to server
UINT uiResult = Send(m_strMessage);
The program gave the following error:
error C2664: 'mbstowcs' : cannot convert parameter 1 from 'class CString' to 'unsigned short *'
Can someone please help me on how to convert an integer value to a CString object.