How to Marshall a 2D SAFEARRAY in C#.NET?

I have a COM DLL using 2D safearrays. I want to use the Interface in C# and need to marshall the 2D array using MarshalAs attribute I guess. Can anyone help me with the syntax please? Thanks

1 Reply

YU Yuriy September 23, 2002 11:57 AM UTC

Take a look @ example. I have example of calling Marshalled arrays from Fortran. Please let me know if you need COM client in VB or C++. Good Luck. Yuriy > I have a COM DLL using 2D safearrays. I want to use the Interface in C# and need to marshall the 2D array using MarshalAs attribute I guess. Can anyone help me with the syntax please? > > Thanks

Loader.
Up arrow icon