Passing Strings to a DLL

Blitz3D Forums/Blitz3D Userlibs/Passing Strings to a DLL

Hello. A new problem in my dll life. I need to pass a string to a dll function.

The problem is that Blitz converts the string to a C null terminated string: ("BLABLABLA" + '\0')

Then, if the string i need to pass to Blitz is not for "only message text" (containing for examples compressed floats) if the string contains any '\0' character the string will be truncated...

For example: I pass "HELLO\0WORLD" and i get only "HELLO". The same problem occurs when getting a string from a DLL.

Any help on this?