array, vector & Color

I'm using MS Visual Studio 2010 Professional C++.
Following is part of the rich text box that displays text in multiple colors.

1
2
3
4
array<System::Drawing::Color>^myColor; // This works.  Great!
vector <System::Drawing::Color>  myColor; // This fails.
vector <System::Drawing::Color> ^myColor; // This fails.
vector <System::Drawing::Color> *myColor; // This fails. 


I've read that vector is the C++ choice for arrays,
and that array is part of the old out-dated C style.
How can I rewrite the code to utilize vectors?

I already learned C++ back in college, so I'm not eager to climb a steep
learning curve of a whole new language, such as C# (.NET, CLI/CLR, etc.).
Funny that I’m already forced to mix managed & unmanaged codes. LOL!
Well, news for you: That is C++/CLI, and we consider it a new language. For instance, I know both C++ and C#, but I don't have your answer, meaning I don't know C++/CLI.

My personal opinion: Learn C#. Is very similar to C++ and Java, so it should feel very familiar.
Topic archived. No new replies allowed.