[CONVERSION] char* to wxString
Salut à tous. Maintenant je désire convertir un char* en wxString...
this->nomfichiercopiedila est un attribut de ma classe qui est un char*...
Code:
1 2 3 4
|
char* test = this->nomfichiercopiedila;
wxString copieur = wxString() << _T(test);
wxMessageBox(_T("Nom de votre copie : \n")+this->nomfichierwx,_("Attention"),wxOK); |
Il n'aime pas ma conversion...
Code:
1 2
| base.cpp:356: error: `Ltest' undeclared (first use this function)
base.cpp:356: error: (Each undeclared identifier is reported only once for each function it appears in.) |
! Je ne comprend pas, ailleurs ça fonctionne... :(
Merci d'éclairer ma lanterne... décidemment je vais commencer par détester les conversions de chaînes... Gniii