T
Tio
my code:
if (new data )
{
CString* pStr = (CString*)wParam; //data come with some
com port (PostMessage)
CString p2Str; //old string in edit box
m_dataa.GetWindowText(p2Str);
*pStr= p2Str+*pStr; // add old string to new string
m_dataa.SetWindowText(*pStr); // send new string to edit box
delete pStr;
}
in first step I have in edit box "12345"
then come new data "6789"
so it should be after adding two string "12345 6789" in edit box but
is "12345 89"
why I lost two signs?
if (new data )
{
CString* pStr = (CString*)wParam; //data come with some
com port (PostMessage)
CString p2Str; //old string in edit box
m_dataa.GetWindowText(p2Str);
*pStr= p2Str+*pStr; // add old string to new string
m_dataa.SetWindowText(*pStr); // send new string to edit box
delete pStr;
}
in first step I have in edit box "12345"
then come new data "6789"
so it should be after adding two string "12345 6789" in edit box but
is "12345 89"
why I lost two signs?