Passing a structur to a DLL ???

BlitzMax Forums/BlitzMax Programming/Passing a structur to a DLL ???

The types wont work, blitzmax does not handle arrays the same way as C/C++

struct Foo {
  char Name[4]
}


in max needs to be like this

Type Foo
  Field Name_1:Byte
  Field Name_2:Byte
  Field Name_3:Byte
  Field Name_4:Byte
End Type


Since this has [1024] size of the names that is a mess. Really needs simple C Callable wrapper passing the names and returning handles to the underlying structures.


Doug Stastny