By 'managed' do you mean C++/CLI?
If so, then the following example accepts an integer array by ref:
void Foo(array<int> ^%ThisArray)
{
}
But, unless you are changing the array reference, the following will do:
void Foo(array<int> ^ThisArray)
{
}
You do not have to pass by ref if just changing the contents of an array
since the array reference is not changing.

Signature
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C#/VB to C++ converter
Instant Python: C#/VB to Python converter
> I need to pass an array from C# to a managed C++ function (that will
> in turn call unmanaged C code). My knowledge of managed C++ syntax is
[quoted text clipped - 3 lines]
>
> How should I declare this array parameter in the managed C++ function?
Rich - 25 Feb 2007 15:45 GMT
On Feb 25, 8:10 am, David Anton <DavidAn...@discussions.microsoft.com>
wrote:
> By 'managed' do you mean C++/CLI?
> If so, then the following example accepts an integer array by ref:
[quoted text clipped - 23 lines]
>
> - Show quoted text -
PERFECT - That is exactly what I needed. Thanks very much!