As Arjay already suggested, I would like to advise: even in an MFC aplication, prefer STL containers over MFC collections whenever is possible. Since I said "do not use STL in MFC-based applications"...