Search Wiki:
Resource Page Description
An extension (template specialization) to marshal_as<> library of Visual C++ 2008, to convert Unicode string arrays between managed (CLR) and native (STL/C++) code.



Last edited Jun 4 2008 at 8:09 PM  by GiovanniD, version 2
Comments
mobydisk wrote  Dec 24 2008 at 8:13 PM  
There is already a method to do this marshal_cppstd.h:
#include <msclr\marshal_cppstd.h>
std::string stlNames = msclr::interop::marshal_as<std::string>( names );
For more information, check out:
http://msdn.microsoft.com/en-us/library/bb384865.aspx

GiovanniD wrote  Jan 1 2009 at 2:12 PM  
mobydisk: the code I proposed is to marshal string *arrays*, not simple strings.

Updating...
Page view tracker