我用 MFC Class 类型创建了一个基于 CDialog 类CEditDialog类接着用Generic Class 类型自建一个没有基类的COneAxis 类 当我用CEditDialog类的protected member function 访问 COneAxis类的
public member function,这时出现了这个错误:
illegal call of non-static member function
请高手援手,谢谢!!!
public member function,这时出现了这个错误:
illegal call of non-static member function
请高手援手,谢谢!!!
如果你的这个成员函数不是静态的,当然不行.只有静态成员函数才能这样调用.普通的成员函数的调用应是 object.MemberFunction(), 或pObject->MemberFunction().