OTNET@;DISCUSS.DEVELOP.COM] On Behalf Of Thomas
Tomiczek
Sent: Saturday, October 19, 2002 9:18 AM
To: [EMAIL PROTECTED]
Subject: Re: [ADVANCED-DOTNET] FW: Interop: Handling OUT parameter of
array, gets error "Can not use SizeParamIndex for byref array
parameters."??
Thanks a lot Andrew, b
[mailto:Andy.Hopper@;MINDSPRING.COM]
Sent: Samstag, 19. Oktober 2002 14:38
To: [EMAIL PROTECTED]
Subject: Re: [ADVANCED-DOTNET] FW: Interop: Handling OUT parameter of
array, gets error "Can not use SizeParamIndex for byref array
parameters."??
Thomas-
If the value of size changed something went terr
half Of Thomas
Tomiczek
Sent: Friday, October 18, 2002 4:47 AM
To: [EMAIL PROTECTED]
Subject: Re: [ADVANCED-DOTNET] FW: Interop: Handling OUT parameter of
array, gets error "Can not use SizeParamIndex for byref array
parameters."??
Andrew - I hve to ge this back up. Found the time to try
rop: Handling OUT parameter of
array, gets error "Can not use SizeParamIndex for byref array
parameters."??
Hello, Thomas-
>From what I understand, using the SizeParamIndex to marshal arrays only
works for marshaling data from managed code into COM and will not work
for out parameters.
h I
recommended will.
Good luck!
-Andy
-Original Message-
From: Moderated discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED]] On Behalf Of Thomas
Tomiczek
Sent: Monday, October 14, 2002 11:54 AM
To: [EMAIL PROTECTED]
Subject: Re: [ADVANCED-DOTNET] FW: Interop: Handling OUT para
: Handling OUT parameter of
array, gets error "Can not use SizeParamIndex for byref array
parameters."??
I came across the same problem with C-style arrays only last week. I
solved it the same way.
I have been getting some very odd behavior though -
ExecutionEngineExceptions and other random
ctober 2002 15:37
> To: [EMAIL PROTECTED]
> Subject: Re: [ADVANCED-DOTNET] FW: Interop: Handling OUT parameter of
> array, gets error "Can not use SizeParamIndex for byref array
> parameters."??
>
>
> Hello, Thomas-
>
> From what I understand, using the SizeParamIn
derated discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED]] On Behalf Of Thomas
Tomiczek
Sent: Monday, October 14, 2002 6:49 AM
To: [EMAIL PROTECTED]
Subject: [ADVANCED-DOTNET] FW: Interop: Handling OUT parameter of array,
gets error "Can not use SizeParamIndex for byref array parame
]]
Sent: Montag, 14. Oktober 2002 15:20
To: [EMAIL PROTECTED]
Subject: Re: [ADVANCED-DOTNET] FW: Interop: Handling OUT parameter of array, gets
error "Can not use SizeParamIndex for byref array parameters."??
Thomas,
Try it like this
[PreserveSig]
int Next(
int cPins,
Thomas,
Try it like this
[PreserveSig]
int Next(
int cPins,
[Out, MarshalAs(UnmanagedType.LPArray, SizeParamIndex=0)] IPin[]
ppPins,
out int pcFetched );
Mattias
===
Mattias Sjögren
[EMAIL PROTECTED]
You can read messages from the Advanced DOTNET archive, unsubscr
> Hello, simple question (so to say).
>
> I ham trying to manage interoo for interface arrays.
>
> This interface definition is not working. It is for a DirectShow
> Interface:
>
> [ComVisible(true), ComImport,
> Guid("56a86892-0ad4-11ce-b03a-0020af0ba770"),
> InterfaceType( C
11 matches
Mail list logo