Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » FDS crash when using std:: string
Re: FDS crash when using std:: string [message #250339 is a reply to message #250284] Sun, 18 March 2007 07:29 Go to previous messageGo to previous message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma:
General (3 Stars)
works fine for me :/

try

char buf[256];
size_t count = wcstombs(buf, Message, 256);
buf[count] = '\0';

string mystring(buf);


[Updated on: Sun, 18 March 2007 07:30]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Remaking carnage club!
Next Topic: C&C_StuntMania Beta 1
Goto Forum:
  


Current Time: Wed Jan 08 05:32:28 MST 2025

Total time taken to generate the page: 0.00780 seconds