Builder... If you want to stick to STL you can convert a standard STL
Vector to a STL/CLI Vector in C++/CLI.
// test standard STL to STL/CLI
std::vector<std::stringstdVector;
stdVector.reserve(2);
stdVector.push_back("Hello");
stdVector.push_back("World");
vector<String^cliVector;
cliVector.reserve(2);
std::vector<std::string>::iterator it3= stdVector.begin();
for(;it3 != stdVector.end();it3++) {
cliVector.push_back(Util::ConvertCS2MS(*it3));
}
vector<String^>::iterator it4= cliVector.begin();
for(;it4 != cliVector.end();it4++) {
Console::WriteLine(*it4);
}
Regards,
Jeff
*** Sent via Developersdex
http://www.developersdex.com ***