The information in this article applies to:
SYMPTOMSWhen you use MFC templated collection classes such as CArray, CList, and CMap to store elements of type HTREEITEM or HIMAGELIST, the compiler generates the following compiler error:
- or -
CAUSE
HTREEITEM is type-defined (typedef) as struct _TREEITEM, and HIMAGELIST is
type-defined (typedef) as struct _IMAGELIST in header file Commctrl.h
located in the \Msdev\Include directory. Structures _TREEITEM and IMAGELIST
are not defined in any header files or source files.
RESOLUTIONDefine a dummy structure for _TREEITEM or _IMAGELIST in global scope. For example, the following code should compile cleanly:
STATUSThis behavior is by design. Additional query words: 4.00
Keywords : kberrmsg |
Last Reviewed: August 8, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |