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...
![]()
Partager