Visual C++ 2005的一个问题
我定义了一个类CPropSheet:
class CPropSheet : public CPropertySheet
类CPropSheet有两个重载的构造函数:
public:
CPropSheet(UINT nIDCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
CPropSheet(LPCTSTR pszCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
我在视类中构造一个CPropSheet对象:
CPropSheet propSheet("xiao_py");
propSheet.DoModal();
却出现一个错误:
error C2664: 'CPropSheet::CPropSheet(UINT,CWnd *,UINT)' : cannot convert parameter 1 from 'const char [8]' to 'UINT'
There is no context in which this conversion is possible
但是在VC6中这样做却能编译通过,请问问题出在哪里??????