Thank you for the reply.
I am trying to port some VB6 code that does work properly with this dll
The VB6 code passed in the array of Types ByRef
I tried ByVal and I get a stack overflow error
In regards to this posting, I did google this thread:
http://www.dotnet247.com/247referenc...43/215864.aspx
The following quote is from that very long thread
<<<<
The marshaller cannot handle "embedded arrays of structures" and "variable
length structs". It can only handle embedded arrays of blittable types(int,
char etc) - as I illustrated in a previous post.
If you really want to use C# to pass such managed structures to unmanaged
code, you'll need to help the marshaller by passing as argument to the API,
a pointer to a buffer, that contains a copy of the managed struct fields you
marshalled using the Marshal.WriteXX methods. On return you need to copy the
buffer contents back to the managed structure using the Marshal.ReadXX
>>>>>
I am just surprised that I can't find a syntax in DotNet to marshal an array
of structures
the same way VB6 marshalled an array of types.
The un-managed function is buried in a Fortran dll that I do not have the
source for.
Am I missing something simple here?