我在类中定义了
B();
B(LPSTSTR lpName);
两个构造函数然后声明类的时候这样写
B b((LPCTSTR)strText);//strText为CString类型
却返回了
cannot convert parameter 1 from 'const char *' to 'const class B &'
这样的错误。求解
B();
B(LPSTSTR lpName);
两个构造函数然后声明类的时候这样写
B b((LPCTSTR)strText);//strText为CString类型
却返回了
cannot convert parameter 1 from 'const char *' to 'const class B &'
这样的错误。求解
B:A
其中A也定义了一个这样的构造函数
A(CString lpName);