stringw, how to get its guts

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
kendric
Posts: 71
Joined: Tue May 29, 2007 9:05 pm

stringw, how to get its guts

Post by kendric »

Why does stringw have:
c_str
but no
w_str?

How am I supposed to pass its data to a function such as:
font->draw(wchar*....

Whats the point of a wchar wrapper if you can't get to the wchars easily?

I could convert it to a char* and then convert it back to a wchar* with some other function but I would lose all the data that wchar provides wouldn't I?

Am I missing something, I feel so noobish(comming from a java background)
beshrkayali
Posts: 85
Joined: Mon Jun 11, 2007 11:22 am
Location: Damascus - Syria
Contact:

Post by beshrkayali »

funny isn't it,

I was coming to ask that same question :lol:

is it something with those L chars before the text in the "" signs??

need help in here too :roll:
Klasker
Posts: 230
Joined: Thu May 20, 2004 8:53 am
Contact:

Post by Klasker »

stringw's c_str() method returns a wchar_t*

The C in c_str() relates to the programming language C (as in, C-style string) and is not an abbreviation of char.
kendric
Posts: 71
Joined: Tue May 29, 2007 9:05 pm

Post by kendric »

Oh wow, what an idiot moment. Sorry and thanks for the answer ;)
Post Reply