Interop Structure with array of Structures

  • Thread starter Thread starter Jacob
  • Start date Start date
J

Jacob

I have an interop question:

I'm trying to get the ICONDIR Win32 struct which contains an array of
ICONDIRENTRY structures to marshall correctly. The problem is that the array
isn't a set amount and could be any number of ICONDIRENTY structures. The
good news is that the ICONDIR structure does include the number of entries
in the ICONDIRENTRY array. How do I properly marshal the structure so that I
can properly recieve all the structures in the array?


Thanks,
Jacob
 
Hi Jacob!

I have an interop question:

I'm trying to get the ICONDIR Win32 struct which contains an array of
ICONDIRENTRY structures to marshall correctly. The problem is that the
array isn't a set amount and could be any number of ICONDIRENTY
structures. The good news is that the ICONDIR structure does include the
number of entries in the ICONDIRENTRY array. How do I properly marshal the
structure so that I can properly recieve all the structures in the array?

Did you try the IconHelper-class from John Hornick [MS] ?
http://groups.google.de/groups?selm=IT4UEzFSCHA.2244@cpmsftngxa10

Cheers

Arne Janning
 
Thanks for the tip. I ended up doing the same approach myself... reading the
icon data out bit-by-bit instead of trying to marshall the whole thing at
once.

Jacob


Arne Janning said:
Hi Jacob!

I have an interop question:

I'm trying to get the ICONDIR Win32 struct which contains an array of
ICONDIRENTRY structures to marshall correctly. The problem is that the
array isn't a set amount and could be any number of ICONDIRENTY
structures. The good news is that the ICONDIR structure does include the
number of entries in the ICONDIRENTRY array. How do I properly marshal
the structure so that I can properly recieve all the structures in the
array?

Did you try the IconHelper-class from John Hornick [MS] ?
http://groups.google.de/groups?selm=IT4UEzFSCHA.2244@cpmsftngxa10

Cheers

Arne Janning
 
Back
Top