Read-only archive of the All About Symbian forum (2001–2013) · About this archive

string to _Lit8 how?

1 replies · 2,637 views · Started 21 December 2002

Hi!

i have the BTpointtopoint example and in the messageclient.cpp is this declaration

_LIT8(KMessage, "Hello World"😉;

what should i do if i put a string in it !?

I will also set the string from the appui.cpp how does this work?!?

_LITs and _LIT8s are constant strings, so you can't modify their contents. You need some other kind of descriptor (such as TBuf8 or HBufC8) to store strings which you want to modify.

Look in the SDK under "descriptors" for more information.