I have a few questions about Symbian C++ as below, could you help to answer them? thanks.
1. why we can't implement codes like this? what's its problem?
class CMyClass : CBase
{
public:
CMyClass(){
CleanupStack::PushL(this);
// do initialization that may ccause leave...
CleanupStack::Pop(); // this
}
};
2. why we need to provide an implementation of constructor of C class? Even it is an empty implementation in .CPP file, and how about implement it by inline in .H file?
3. When we should use HBuf? And, when we should use HBufC? what is their differences?


Reply With Quote

