cannot convert 'std::string' to 'System::String ^'
Bonjours à tous, je fais mon premier interface graphique et j'utilise visual C++ 2005.
j'arrive a faire un "Hello world" clasique avec un bouton et un textbox
textBox1->Text="Hello world";
Facile, mais dès que je veux afficher à la place un string attribut d'une classe de mon projet:
contact * toto = new contact();
toto->set_nom("Maurice");
textBox1->Text=toto->get_nom();
j'obtiens l'erreur:
Error 1 error C2664: cannot convert parameter 1 from 'std::string' to 'System::String ^'
ça m'embète quand même...
:cry: