3
« on: December 31, 2011, 08:30:21 pm »
Hi, i switched from SDL to sfml1.6 - everything was working fine
then i thought sfml2 would be better then 1.6, so i moved to 2
But then i see that sfml2 is using const std::string instead of const char* and my window title don't shows what it should be.
I see som unusal characters instead of my wished titel ( things like 0z' or Oz-)
Here is a code snippedhSF = new sf::Window(sf::VideoMode(JD_SCREENWIDTH,JD_SCREENHEIGHT,32),"TITEL",Flag,settings);
I also tried these combinations :
hSF = new sf::Window(sf::VideoMode(JD_SCREENWIDTH,JD_SCREENHEIGHT,32)std::string("TITEL"),Flag,settings);
hSF = new sf::Window(sf::VideoMode(JD_SCREENWIDTH,JD_SCREENHEIGHT,32),(const std::string)std::string("TITEL"),Flag,settings);
const std::string = "titel";
hSF = new sf::Window(sf::VideoMode(JD_SCREENWIDTH,JD_SCREENHEIGHT,32),titel,Flag,settings);
then i tried to use sf::String, it was working fine - until the end of the function. I get a stackoverflow...
The debugger shows some calls to std::allocator and the final error is thrown from "msvcr100d.dll opartor delete(void* pUserData9)"
what's the matter here?
I'm using VS2010 and shared libs (yes configured my own with cmake)