The need to marshal between native and managed types is a very frequent scenario in mixed-mode programming. This is specially true when it comes to strings – when you’ve got MFC strings, COM strings, standard C++ strings and CLR strings and need to convert between those types. In fact that’s what prompted me to write [...]
Entries from April 2007
Using marshal_as for mixed-mode string conversions
April 1st, 2007 · 8 Comments
Tags: VC++ Orcas