Home All Groups Group Topic Archive Search About

Marshalling c++ structs in a Variant Array

Author
8 Mar 2007 7:54 AM
sbparsons
I'm using interop between .Net and C++ (COM) and am attempting to retrieve an
array of structs from the COM server.

I realise that having VT_RECORD type data in variants is not supported.
Is the only way to accessing these types of returns via custom marshalling?
A book that I am reading (printed 2002) states that this is so, and I will in
fact have to modify the IL to get this to work. Is this still true for .Net
2.0? Or is there a newer simpler method (I hope!)?

Thanks for all/any info.
Sean

AddThis Social Bookmark Button