You Are Here:

Community: Developer Discussion Boards

#1 Old Dynamic Service Description? - 2003-11-23, 08:31

Join Date: Jun 2003
Posts: 318
advocatee
Offline
Regular Contributor
Hi..

I need to pass a const TDesC16 or TDesC8 service description parameter to UpdateAttributeL().

But i need this parameter is generated dynamically, its contents change depending on the scenario..., before being passed to the function.

How can i do this?

If anyone wants to know, i'm trying to pass a dynamically generated service description to the SDP database , like this:

iSdpDatabase.UpdateAttributeL(iRecord,
KSdpAttrIdBasePrimaryLanguage + KSdpAttrIdOffsetServiceDescription,
KServiceDescription);

Where KServiceDescription was originally:...
_LIT(KServiceDescription, "I need these contents to be dynamic");

Any idea anyone?
Reply With Quote

#2 Old 2003-11-23, 08:47

Join Date: Jun 2003
Posts: 318
advocatee
Offline
Regular Contributor
guess i found the answer..

Create a TBuf, do what i want to do with it,
create a TBufC, copy TBuf's data.
pass TBufC
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia