CString doubleText;
doubleText.Format("%f", dNumber);
CEdit* pEd = (CEdit*)CDialog::GetDialogItem(MY_TEXT);
pEd->SetWindowText(doubleText);
That should convert the double to a string with up to 6 decimal places of precision, and display it on the CEdit resource with the identifier...
I am working on an application that uses a view based off of rich edit 2.0. This program worked fine until I added a new class to handle socket messages, at which point the colors in the rich edit started going bad. This color problem occurs only in the release version, and not in the debug...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.