Bonjour,
j'ai un problème lorsque je veux convertir un char en string afin de
procéder à une concaténation (dans le cadre d'une fenêtre api). Le code
suivant ne fonctionne pas, et indique comme erreur "crosses
initialization of `std::string bind' "
#include <string>
#define ID_MAIN_BOUTON 001
using namespace std;
HWND main_list; //handle d'un combobox
HWND edit1; //handle d'un edit
...
...
...
case WM_COMMAND :
switch(LOWORD(wParam))
{
case ID_MAIN_BOUTON :
char texte[50];
GetWindowText(main_list, texte, 50);
string bind;
bind = texte;
bind = bind + "huh";
SetWindowText(edit1,bind.c_str());
Merci