Passing a type to a DLL API

BlitzMax Forums/BlitzMax Programming/Passing a type to a DLL API

I guess that to transfer the data from a bank to a type structure, the way is the same: mytype.myfield = peekshort(2,offset).. and so on for each field is needed. Right ?


If the MIDIOUTCAPS structure didn't have that char array in it (the product name), it would be very easy (just pass a type object as a Byte Ptr to the function) - there would be no need to copy the fields one by one. Unfortunately BlitzMAX provides no way of creating C-style arrays in structures - this has given me an idea :)