int a=12;
CString tmp;
tmp.Format("%d",a);
m_edit.SetWindowText(tmp); //m_edit.SetWindowText(&tmp)かも。どっちか忘れた。

とか書けば、わかるかな?