Importing Arrays From C
BlitzMax Forums/BlitzMax Beginners Area/Importing Arrays From C
| ||
Hello. I have a C/C++ function that needs to return an array back to Blitz Basic. How do I send an array, or must I send each elemant individually? At the moment I am dealing with a static array, but I will need to use dynamtic memory/array in the future. For example, an integer array called game[3][3]. How do I return this back? Thanks. |
| ||
I *Think* you need to pass a pointer to the array. However, as you want a dynamic array I would assume that you would need to pass a pointer to a class structure that contained both the pointer to the array and it size |