a pointer to a managed array of pointers ??

  • Thread starter Thread starter Chris
  • Start date Start date
C

Chris

Hi,

what is the syntax for passing a pointer to a managed array of pointers in
C++.NET ?

Here's what I try :

void GetArr(Person ** parr __gc[]) ==> compiler error
{
*parr = new Person* [2];
}

main()
{
Person *p __gc[];
GetArr(&p);
}

thanks
Christian
 
Hi Chris,
what is the syntax for passing a pointer to a managed array of pointers in
C++.NET ?

Here's what I try :

void GetArr(Person ** parr __gc[]) ==> compiler error
{
*parr = new Person* [2];
}

main()
{
Person *p __gc[];
GetArr(&p);
}


Try this:
void GetArr(Person __gc * (* parr) __gc[])
 
Back
Top