Passing a type to a DLL API

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

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.

@Dremora,

semar's original conversion table is correct. A VB6 int is two bytes long (ie. a short in most other languages):

VB6 Int = BMX Short
VB6 Long = BMX Int

@semar

Unfortunately it doesn't seem to be possible to create C-style arrays in BlitzMAX. String[] is an array of strings, whereas the MIDIOUTCAPS structure should be an array of 32 chars. Using Byte[] in BlitzMAX doesn't work either, since arrays are objects.

I think the easiest option would be to have a C wrapper for these functions.