Simple. Just do the following.
Code:
CString str;
str.Format("%f",pDoc->m_r1);