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

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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.
 
Back
Top