Page 1 of 1

L"xxxx"

Posted: Sat Nov 08, 2003 5:46 pm
by Cleves
Hey all,

I wanted to ask how i display a value of a variable using L"xxxx"?
Thanks

Posted: Sun Nov 09, 2003 2:37 pm
by hell_bird
do you need this?

Code: Select all

#include <iostream>

wchar_t text=new wchar_t[10];
int x=3121;

swprintf(text,10,"%i",x);
in the variable text is now L"3121"

Posted: Sun Nov 09, 2003 6:59 pm
by Cleves
Yes,It's exaclty what i need.Thank you