a pointer to a managed array of pointers ??

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
 
T

Tomas Restrepo \(MVP\)

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[])
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top