I'm coding in VC++.NET 2003. For a static array of 20 elements, the code below works fine. But, I needed a dynamic array. I decided to use an ArrayList, but came to a compiler error when it couldn't convert from bool to System::Object __gc*. Anyone know how to convert this? I couldn't find much info on System::Boolean*. How do you assign to this variable (true, TRUE, True, 1)? Will this work? Thanks.

static bool bDrawLine __gc[] = new bool __gc[20];

Can't you just simply use std::vector?

vector<bool> array;

It will grow as needed.