newlc.com
Articles Only
Forum Only
Community
World-Wide Web
Home
News
Tutorials
Reviews
Downloads
Professional Services
Forums
Newsletter
Blog
About us
Last forum posts
Home
::
Forums
::
Development
::
Symbian C++
User login
Username:
*
Password:
*
Create new account
Request new password
Featured pages
Configure your PC for Symbian development
Getting started with Symbian development
Symbian OS Error Codes
Common products UIDs
Nokia S60 SDK
Featured Software
NlMakesis
Y-Browser
Y-Tasks
Active users (last 30 days)
User
Score
rbrunner
54
eric
54
Andreas
44
sandeepmhptr
41
alh
32
more
Feeds
More feeds...
How I can convert TBuf<64> to HBufC* ! Thanks very much !
Login
to reply to this topic.
Tue, 2006-02-28 10:33
doctinh113
Joined: 2005-06-21
Forum posts: 107
Hi all !
Please help me ! How I can convert TBuf<64> to HBufC* ! Thanks very much !
---------------------------- doctinh113114------------------------
Login
or
register
to post in forums
Tue, 2006-02-28 11:41
fabriz
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
staskray
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.
Forum posts: 35
TBuf<64> otherBuf;
HBufC* heapDes = HBufC::NewL(64);
heapDes->Des().Copy(otherBuf);
BR,
Fabriz
I often regret my speech, I never regret my silence
Forum posts: 25
even simpler:
HBufC* heapDes = otherBuf.AllocL();
// Stanislav