View Full Version : About _L8("")?


Marw
02-01-2003, 02:20 PM
Hi! I can do the following:

TBuf8<1024> Buf;
Buf.Append(_L8(" "));
Buf[0] = (TUint8) 0x01;
Buf[1] = (TUint8) 0xa2;
Buf[2] = (TUint8) 0xff;

but is possible to do this some other way?
I would like to add these "characters" in a constant variable like:

const TDesC8 KMyConst = _L8("TEXT");
...
Buf.Copy(KMyConst);

How can I do it? Thanks.

-Marw

02-03-2003, 12:35 PM
_LIT8(KMyConst, "TEXT");
Buf.Copy(KMyConst);