Hello,
I have some problems with "this" pointer:
It gives me error when i do it: C2106: '=' : left operand must be l-value (LINE 3)
What can i do?
Thanks,
Kasya
P.S I don't want to use function like void CPrototype::new Instance(CInsta nce * instance);
I have some problems with "this" pointer:
Code:
CInstance::CInstance(CPrototype *backing) {
_backing = backing; //CPrototype *_backing;
this = backing->newInstance(); //CInstance * CPrototype::newInstance();
}
What can i do?
Thanks,
Kasya
P.S I don't want to use function like void CPrototype::new Instance(CInsta nce * instance);
Comment