我是个VC初学者,跟着黄维通的《Visual C++ 程序设计教程》做例子。其中第10章的菜单设计的例子中:
void CCMDlg::OnShowasciiMenu() 
{
// TODO: Add your command handler code here
char cOutString[257];        //定义输出字符串数组
for (int i=0;i<255;i++)
cOutString[i]=i+1;
cOutString[256]='\0';
m_Show_Edit.SetWindowText((LPCTSTR)cOutString);   //输出到编辑框
}这个函数是用来显示0~255的ASCII字符的,但是编译的时候出错了:e:\Documents and Settings\robertsmith\My Documents\Visual Studio Projects\CM\CMDlg.cpp(189) : error C2039: 'SetWindowTextA' : is not a member of 'CString'
        e:\program files\microsoft visual studio\vc98\mfc\include\afx.h(368) : see declaration of 'CString'遇到这样的问题该怎么解决呢??原书把m_Show_Edit定义为CEdit类,似乎也有问题。