max strings

BlitzMax Forums/BlitzMax Programming/max strings

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

ok... I give up. How are strings handled in max? I'm trying to pass and return strings from a dll and all I'm getting is garbage. I've tried passing by reference to the dll, just the string itself, a memory pointer to the string (varptr)... No joy in sending a string to the dll. All I get is a three character string like "PyZ" or something similar with high ascii. In RECIEVING a string from the dll I've tried sending it back as unicode, a pointer to the string, the string itself, null terminated, etc etc etc... All I get back is garbage.

What's going on?