怎么将字符型常量输出到文本框
如何将字符型常量输出到文本框?
如题
------解决方案--------------------
//下面的代码通过
char ch1[255] = "abcd ";
char * pCh1 = ch1;
m_edtCtrl.SetWindowText(pCh1);
//或
CString str;
str.Format( "%s ",pCh1);
m_edtCtrl.SetWindowText(str);
如题
------解决方案--------------------
//下面的代码通过
char ch1[255] = "abcd ";
char * pCh1 = ch1;
m_edtCtrl.SetWindowText(pCh1);
//或
CString str;
str.Format( "%s ",pCh1);
m_edtCtrl.SetWindowText(str);