How can i convert std::string (or irr::stringw) to irr::c8 *

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
eviral
Posts: 91
Joined: Mon Oct 25, 2004 10:25 am

How can i convert std::string (or irr::stringw) to irr::c8 *

Post by eviral »

How can i convert std::string (or irr::stringw) to irr::c8 * ???

A lot of methods are using c8 * type.

For exemple : getMesh(const c8* filename)

I'm getting the filename from an XML file as a string but i can't convert it to irr::c8 * !!!!

Please help

Thanks

Eviral
xDan
Competition winner
Posts: 673
Joined: Thu Mar 30, 2006 1:23 pm
Location: UK
Contact:

Post by xDan »

mystring.c_str()

I think :D
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Yeah what Dan said should do the trick!
Image Image Image
Post Reply