Passing Strings to a DLL

Blitz3D Forums/Blitz3D Userlibs/Passing Strings to a DLL

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.

A string in C is simply a buffer with a 0 as last byte. Only C string commands will consider that last byte. You should use a bank in Blitz, fill it as you want and pass its pointer (i.e. by reference) and eventually its length to your DLL. If you need your DLL being able to modify the buffer you pass, you should use a bank in Blitz, not a string.