Hi!

Since A7.84, STRING* doesn't work correct with my external plugins anymore. A short example:

Lite-C:
Code:
void main()
{
   STRING* test_str = str_create("#10");
   str_cpy(test_str,"TEST");
   exSample_function(test_str);
}



c++:
Code:
DLLFUNC void exSample_function(STRING* str)
{
   char str_as_char[10];

   strcpy(str_as_char,str->chars);
   //str_as_char is NOT filled with the correct content
   //only with random symbols
}



I guess this is because of the migration of the engine to UNICODE. But shouldn't ->chars still return a normal ASCII character set?
How should this be done now?

Thanks for your help!


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version