Re: interop for string[] array
- From: Lucvdv <replace_name@xxxxxxxx>
- Date: Fri, 18 Nov 2005 10:32:54 +0100
On Fri, 18 Nov 2005 01:44:14 +0100, "Egbert Nierop \(MVP for IIS\)"
<egbert_nierop@xxxxxxxxxxxxxx> wrote:
> sample what I would like to pass to a win32 function
>
> struct blah
> {
> int cElements;
> string [] elements
> }
Egbert,
I don't know if it is supposed to work in 2.0, but I had the same problem
in VB.Net with CLR 1.1, and there I did get an exception at runtime: "Can
not marshal field xxx of type yyyy: This type can not be marshaled as a
structure field." (xxx is a string array)
see Message-ID: <mheon1l85fask6vtsrq3bnriqrflaj7jne@xxxxxxx>
(posted yesterday, "Marshal array in structure")
.
- Follow-Ups:
- Re: interop for string[] array
- From: Egbert Nierop \(MVP for IIS\)
- Re: interop for string[] array
- References:
- interop for string[] array
- From: Egbert Nierop \(MVP for IIS\)
- interop for string[] array
- Prev by Date: RE: STAThreadAttribute is ignored in .net Framework 2.0?
- Next by Date: Re: COM interop - Framework Version
- Previous by thread: interop for string[] array
- Next by thread: Re: interop for string[] array
- Index(es):
Relevant Pages
|