Bonjour à tous,
j'ai trouvé un code sur le net pour faire une liste box de catégorie: http://www.codeproject.com/combobox/catlistbox.asp
j'ai un petit problème avec ce code:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
 struct CatListBoxItemInfo
{
   CString     sItem;
   int         iState;
   DWORD       dwValue;
};
typedef list<CatListBoxItemInfo>          CatListBoxStlList;
typedef CatListBoxStlList::iterator       CatListBoxStlListIter;
Quand je compile mon programme, j'ai l'erreur suivante: "error C2027: use of undefined type '_A'" dans la ligne "typedef CatListBoxStlList::iterator CatListBoxStlListIter;" alors que le type CatListBoxStlList est définie en haut.
Quelqu'un pourrait me dire pourquoi j'ai cette erreur?
Je travilles avec VC++.
Merci à tous.