NlMakesis Y-Browser Y-Tasks
Hi, How to convert HBufC to TBuf ? anybody guide that...........
Thanks & Regards, C Singh
here is an example
const TInt KLength=200;//sample length HBufC* buf=HBufC::NewLC(256); // .... add some text to buf
TBuf<256> tbuf(*buf);
//..
CelanupStack::PopAndDestroy(buf);
Note that you should be careful with the lengths - make sure that the length of the Hbuf string does not exceed that of the TBuf.
Thanks Brian... its work fine
Forum posts: 27
here is an example
const TInt KLength=200;//sample length
HBufC* buf=HBufC::NewLC(256);
// .... add some text to buf
TBuf<256> tbuf(*buf);
//..
CelanupStack::PopAndDestroy(buf);
Note that you should be careful with the lengths - make sure that the length of the Hbuf string does not exceed that of the TBuf.
Forum posts: 93
Thanks Brian... its work fine
Thanks & Regards,
C Singh