I have a very small problem with Visual C++: when I try to put a word or sentence contaning a &
symbol into static text, I see that &
symbol as _
on the screen.
Thanks for any help.
int CustomerID;
CString Str= m_lv1.GetItemText(iItem, 0); Str.TrimLeft(); Str.TrimRight();
//if the Str "Hello & Hi" it shows "Hello _ Hi"
m_CustomerName.SetWindowText(Str);