Probleme avec ecriture dans un wxString.
Bonjour, alors voici mon code:
Code:
1 2 3
|
int ID=10;
wxString strID = wxString::Format("%02d",ID); |
ou alors
Code:
1 2 3 4
|
int ID=10;
wxString strID;
strID.Printf("%02d",ID); |
ca me donne l'erreur suivante:
Code:
1 2 3
|
error: no matching function for call to `wxString::Format(const char[5], int&)'
C:/wxWidgets-2.8.8/include/wx/string.h:1208: note: candidates are: static wxString wxString::Format(const wxChar*, ...) |
Pourtant si je regade la doc: http://docs.wxwidgets.org/2.8.6/wx_w...ringinwxstring ca devrais marcher.
Et si j'utilise un cast ((const wxChar*)"%02d",ID) pour forcer la compilation ca me donne 2 petit carrés au lieu de 10 ????