What's the best method of passing a string to an external library? I have a DLL written in C and I want to pass string data to it. I can get string data into blitz from the DLL using the String.FromCString function. How do I do the other way around?
I can pre-allocate the memory for the string in my DLL, but how do I pass the pointer to this allocated memory to blitz and how do I get blitz to copy the string into the memory that this pointer is pointing to?
Cheers anyone for any help :P
I can pre-allocate the memory for the string in my DLL, but how do I pass the pointer to this allocated memory to blitz and how do I get blitz to copy the string into the memory that this pointer is pointing to?
Cheers anyone for any help :P