I've got it!
The right syntax is:

dispparams.rgvarg[0].vt = VT_ARRAY | VT_BYREF | VT_UI4;

Now everything works! Great!

It seems like writing the email to [EMAIL PROTECTED] automatically opened my
mind, I was on this issue since many hours... :-)

> -----Original Message-----
> From: Moderated discussion of advanced .NET topics. [mailto:ADVANCED-
> [EMAIL PROTECTED] On Behalf Of Paolo Pialorsi
> Sent: gioved� 12 febbraio 2004 12.07
> To: [EMAIL PROTECTED]
> Subject: [ADVANCED-DOTNET] Handling ByRef arrays calling .NET code from
> C++ unmanaged code
> 
> Hi all,
> I'm hosting CLR in a C++ unmanaged application.
> Everything works fine, but I'm having just one problem.
> When I try to call a C# method with a signature like this:

===================================
This list is hosted by DevelopMentor�  http://www.develop.com
Some .NET courses you may be interested in:

NEW! Guerrilla ASP.NET, 26 Jan 2004, in Los Angeles
http://www.develop.com/courses/gaspdotnetls

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to