From:http://www.sf.org.cn/Article/symbiandev/200711/20730.html
LIT(KSomeText, "Symbian");
HBufC* heapBuffer=HBufC::NewLC(15);
*heapBuffer = KSomeText;
TBuf<15> buffer(*heapBuffer);
CleanupStack::PopAndDestroy( heapBuffer );
From:http://www.sf.org.cn/Article/symbiandev/200711/20730.html
LIT(KSomeText, "Symbian");
HBufC* heapBuffer=HBufC::NewLC(15);
*heapBuffer = KSomeText;
TBuf<15> buffer(*heapBuffer);
CleanupStack::PopAndDestroy( heapBuffer );