组合框在向导中要设成contral型
count++;
CString temp;
temp.Format(_T("The total is %d"),count); //char ----->CString
m_fff.AddString(temp);
char *p = (LPSTR)(LPCTSTR)temp;//CString ----->char
本文介绍了在软件开发过程中如何将组合框设置为控件类型,并演示了如何使用CString和char进行数据格式转换。通过具体代码示例展示了CString与char之间的相互转换方法。
组合框在向导中要设成contral型
count++;
CString temp;
temp.Format(_T("The total is %d"),count); //char ----->CString
m_fff.AddString(temp);
char *p = (LPSTR)(LPCTSTR)temp;//CString ----->char

被折叠的 条评论
为什么被折叠?