If you want a vector of CStrings then the definition would be vector<CString>. vector<string> will give you a vector of strings, not CStrings.

C++ is case sensitive so vector and Vector are not the same thing.

This is only a guess, because you didn't say why you couldn't do it. I'm guessing you got some sort of error, would that be correct?