But the compiler told me:error C2665: 'REALBuildString' : none of the 2 overloads could convert all the argument types c:\plugin tests\app5\app5\app5\rb_plugin.h(128): could be 'REALstring REALBuildString(const char *,int)' while trying to match the argument list '(TCHAR [32767], DWORD)'

So I need some kind of converting TCHAT->CHAR ... after some more testing I've found this: