R
Robin Tucker
My automation object (COM) wants a safe array of DWORDS passed into it, but
VB.NET tells me what I'm passing in is invalid. I assumed all basic arrays
in .NET were implicitly System.Array's and that the marshaller would
automatically convert it to the required SAFEARRAY. This appears not to be
the case, unless Im doing something totally dumb:
Dim thePalette(256) As System.UInt32
theDocument.GetPalette(256, CType(thePalette, System.Array))
the "GetPalette" method requires an integer and a reference to a
System.Array.
Any thoughts?
VB.NET tells me what I'm passing in is invalid. I assumed all basic arrays
in .NET were implicitly System.Array's and that the marshaller would
automatically convert it to the required SAFEARRAY. This appears not to be
the case, unless Im doing something totally dumb:
Dim thePalette(256) As System.UInt32
theDocument.GetPalette(256, CType(thePalette, System.Array))
the "GetPalette" method requires an integer and a reference to a
System.Array.
Any thoughts?