Voila (je pense que je prend mal le handle sur la CListBox et que ce qui esrt en rouge est archifaux)
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 IDC_LIST2* pmyListBox; // Add 10 items to the list box. CString str; for (int i=0;i < 10;i++) { str.Format(_T("item string %d"), i); pmyListBox->AddString( str ); }
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4 erreur : 1>m:\src\utils\objwin\choosezonedialog.cpp(45) : error C2065: 'pmyListBox' : undeclared identifier 1>m:\src\utils\objwin\choosezonedialog.cpp(51) : error C2227: left of '->AddString' must point to class/struct/union/generic type 1> type is ''unknown-type''
Partager