Returning Objects from Userlibs

BlitzPlus Forums/BlitzPlus Programming/Returning Objects from Userlibs

You are not returning banks from functions.
You are passing them by reference and letting the dll put someting in them.
Then after the dll call, you read what the dll function wrote.

To return a bank from a function, the function would have to create a blitz bank/object, and put it into Blitz internal bank/object lists etc. Since your dll functions can only return normal memory blocks, structs, strings and variables, it's not possible.