Usa il metodo GetString per ottenere un const char *.
Amaro C++, il gusto pieno dell'undefined behavior.
Regole del Forum