我创建了一个类并拥有CString数据成员。
class Clistof
{
CString m_exe;
public:
Clistof(CString temp){m_exe = temp}
};
错误:C3646'exe':未知的覆盖说明符
有什么想法吗?
谢谢,
答案 0 :(得分:0)
您可能没有包含包含CString
定义的标头。如果您还没有这样做,请尝试添加#include <atlstr.h>
。
另请注意,您忘记在构造函数中的赋值语句后添加;
:而不是Clistof(CString temp){m_exe = temp}
,您应该写Clistof(CString temp) { m_exe = temp; }
。