L"xxxx"

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Cleves
Posts: 224
Joined: Mon Sep 08, 2003 6:40 pm

L"xxxx"

Post by Cleves »

Hey all,

I wanted to ask how i display a value of a variable using L"xxxx"?
Thanks
hell_bird
Posts: 18
Joined: Mon Nov 03, 2003 12:30 pm

Post 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"
Cleves
Posts: 224
Joined: Mon Sep 08, 2003 6:40 pm

Post by Cleves »

Yes,It's exaclty what i need.Thank you
Post Reply