For this week's spot the bug contest, we have a simple C++ application that displays a list of employees in a listview control. The MFC class library has been used in this project. MFC, as you may know, is supported on Windows Mobile Pocket PC and Smartphone projects created with Visual Studio 2005.

Upon startup, our application loads up some employee information (loadData), initializes a list view control (initializeListCtrl) and then displays the list of employees (populateListCtrl).

 1Spot the Bug - Episode 2 中BUG的修改void CEmployeeDlg::loadData()
 2

这段代码是修改过的,原来的代码中有一个小Bug
// Create the imagelist and assign it to the listview control
    m_imageList.Create(32, 32, ILC_COLOR32|ILC_MASK, 1, 1);
                ^
smartphone2003中的不支持ILC_COLOR32

相关文章: