Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - jiyan

Pages: [1]
1
General / Problems with std::string
« on: December 31, 2011, 09:14:14 pm »
I'm using new because i need the pointer for a global variable.

But no, i'm using the release libs with a debug config.
In sfml1.6 it worked witht his combination.

I'll try it with the right combination

[EDIT] Ok it worked :) Thank you

2
General / Problems with std::string
« on: December 31, 2011, 09:04:08 pm »
All builds are using mutlibyte characters

3
General / Problems with std::string
« 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 snipped
Code: [Select]
hSF = new sf::Window(sf::VideoMode(JD_SCREENWIDTH,JD_SCREENHEIGHT,32),"TITEL",Flag,settings);
I also tried these combinations :

Code: [Select]
hSF = new sf::Window(sf::VideoMode(JD_SCREENWIDTH,JD_SCREENHEIGHT,32)std::string("TITEL"),Flag,settings);
Code: [Select]
hSF = new sf::Window(sf::VideoMode(JD_SCREENWIDTH,JD_SCREENHEIGHT,32),(const std::string)std::string("TITEL"),Flag,settings);
Code: [Select]

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)

Pages: [1]
anything