Hi!
Since A7.84, STRING* doesn't work correct with my external plugins anymore. A short example:
Lite-C:
void main()
{
STRING* test_str = str_create("#10");
str_cpy(test_str,"TEST");
exSample_function(test_str);
}
c++:
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!