C++ Equivalent to VB ReDim Preserve

Resizing arrays while preserving the existing contents is easily done in VB using ReDim Preserve.  In C++/CLI, you have other alternatives:

VB:
ReDim Preserve YourArray(1, 2)

C++/CLI (assuming an integer array):
array<int, 2> ^tempReDim1 = gcnew array<int, 2>(2,3);
if (YourArray != nullptr)
{
    for (int Dim0 = 0; Dim0 < YourArray->GetLength(0); Dim0++)
    {
        int CopyLength = System::Math::Min(YourArray->GetLength(1), tempReDim1->GetLength(1));
        for (int Dim1 = 0; Dim1 < CopyLength; Dim1++)
        {
            tempReDim1[Dim0, Dim1] = YourArray[Dim0, Dim1];
        }
    }
}

If you need to convert from VB to C++ and you are depending on the results being reliable and accurate, then you will want to have Instant C++ (VB Edition), the best VB to C++ converter, at your fingertips.