How I can convert TBuf<64> to HBufC* ! Thanks very much !

Login to reply to this topic.
Tue, 2006-02-28 10:33
Joined: 2005-06-21
Forum posts: 107
Hi all !
Please help me ! How I can convert TBuf<64> to  HBufC* ! Thanks very much !
---------------------------- doctinh113114------------------------

Tue, 2006-02-28 11:41
Joined: 2003-10-20
Forum posts: 35
Re: How I can convert TBuf<64> to HBufC* ! Thanks very much !
Try this

TBuf<64> otherBuf;
HBufC* heapDes = HBufC::NewL(64);
heapDes->Des().Copy(otherBuf);

BR,
Fabriz

I often regret my speech, I never regret my silence

Tue, 2006-02-28 11:57
Joined: 2006-01-23
Forum posts: 25
Re: How I can convert TBuf<64> to HBufC* ! Thanks very much !
Hi,

even simpler:

Code:
TBuf<64> otherBuf;
HBufC* heapDes = otherBuf.AllocL();

// Stanislav
  • Login to reply to this topic.