Existe uma maneira simples de converter uma string em C++ para char *
.
Segue o código abaixo:
string nome = "Hello";
char *name = new char[nome.length()+1];
memcpy(name, nome.c_str(), nome.length() + 1);
Pronto, sua string em C++ está convertida para char *;