Monday, September 24, 2007

How to convert HBuf to TBuf

_LIT(KSomeText, "Symbian");

HBufC* heapBuffer=HBufC::NewLC(15);
*heapBuffer = KSomeText;
TBuf<15> buffer(*heapBuffer);
CleanupStack::PopAndDestroy( heapBuffer );

No comments:

stats counter