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
46
sandeepmhptr
41
alh
32
more
Feeds
More feeds...
TUint to TDesC8&
Login
to reply to this topic.
Fri, 2005-04-22 03:36
cmc100
Joined: 2004-08-25
Forum posts: 32
Hi all,
I want to make use of the function CSdpAttrValueList->BuildUintL(). I want to set the Uint to be 2. But this function has input parameter of type TDesC8&. Does anyone know how can I cast TUint8 to TDesC8&?
Thanks,
Vincent
Login
or
register
to post in forums
Fri, 2005-04-22 07:09
hungpk
Joined: 2004-07-08
Forum posts: 13
TUint to TDesC8&
TUint8 aInt8;
TDes8 aDes8;
aDes8.AppendNum(aInt8);
 
Fri, 2005-04-22 09:36
didster
Joined: 2004-07-28
Forum posts: 1379
TUint to TDesC8&
Quote from: hungpk
TUint8 aInt8;
TDes8 aDes8;
aDes8.AppendNum(aInt8);
No, TDes8 is an abstract descriptor type:
Code:
TUint8 aInt8;
TBuf8<20> aDes8;
aDes8.AppendNum(aInt8);
didster
 
Fri, 2005-04-22 10:31
hungpk
Joined: 2004-07-08
Forum posts: 13
TUint to TDesC8&
Thank didster. I know it but I have mistake in copy/paste.
 
Login
to reply to this topic.
Forum posts: 13
TDes8 aDes8;
aDes8.AppendNum(aInt8);
Forum posts: 1379
TDes8 aDes8;
aDes8.AppendNum(aInt8);
No, TDes8 is an abstract descriptor type:
TBuf8<20> aDes8;
aDes8.AppendNum(aInt8);
didster
Forum posts: 13