假如有2个类 A, B,
在A类添加B对象,并调用B的成员函数. 传入A类的指针. 我想用这个A的指针在B类里面调用A的成员函数,
出现
error C2027: use of undefined type 'CChildFrame'
error C2227: left of '->GetActiveView' must point to class/struct/union
错误
是不是A包含了B的头文件, B包含了A的头文件. 不行呢
...全文
684打赏收藏
请问个问题
假如有2个类 A, B, 在A类添加B对象,并调用B的成员函数. 传入A类的指针. 我想用这个A的指针在B类里面调用A的成员函数, 出现 error C2027: use of undefined type 'CChildFrame' error C2227: left of '->GetActiveView' must point to class/struct/union 错误 是不是A包含了B的头文件, B包含了A的头文件. 不行呢