There must be a way to garbage collect pointer to pointers in mana

G

Guest

My problem is I am trying to migrate code from Version 6.0 C++ to C++ .NET
managed code and cannot figure out the __gc syntax for a pointer to an array
of pointers.

In C++ I can declare an object pointer type to an array of object pointers
like this.
In my .h file I declare
CAssemFloat **floatPtr;

In the cpp file I would create the array by

floatPtr = new CAssemFloat *[numberOfFloatIn];

There must be a way to garbage collect pointer to pointers in managed C++
..NET.

I appreciate any help,
Thank you
 
D

Derrick Coetzee [MSFT]

Nick said:
My problem is I am trying to migrate code from Version 6.0 C++ to C++
.NET managed code and cannot figure out the __gc syntax for a pointer
to an array of pointers.

See the Managed C++ sample in this MSDN article:

MSDN Home > MSDN Library > .NET Development > .NET Framework SDK > .NET
Framework > Reference > Class Library > System > Array Class
http://msdn.microsoft.com/library/d...-us/cpref/html/frlrfsystemarrayclasstopic.asp

Please write back if this doesn't help you do what you want to do.
 

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