Cross library string problem. New to Irr. (But not coding)

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
chronologicaldot
Competition winner
Posts: 687
Joined: Mon Sep 10, 2012 8:51 am

Re: Cross library string problem. New to Irr. (But not codi

Post by chronologicaldot »

I think he just wants irrString::c_str(), which returns the pointer to the array. If he needs to access the individual slots, he can use the [] operator. If he needs to allocate data, he can use his own allocator instead of the default irrAllocator<T>. But that's all I can offer based on what I can figure he's asking for.
CuteAlien
Admin
Posts: 9809
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Cross library string problem. New to Irr. (But not codi

Post by CuteAlien »

No it's about sharing strings. So telling core::string to not manage the memory at all. But that's hard to put in without having an interface where half the functions no longer do anything - so each one would need additional checks. And you don't really want to put additional checks in string functions.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply