BUG: HTREEITEM May Cause TypeLoadException in a Managed C++ Application (320082)
The information in this article applies to:
- Microsoft Visual C++ .NET (2002)
- Microsoft Visual C++ .NET (2003)
This article was previously published under Q320082 SYMPTOMS When you use HTREEITEM in a Managed C++ application, a
TypeLoadException exception occurs when HTREEITEM is accessed. CAUSE This is caused because the _TREEITEM typedef in the
commctrl.h file has no corresponding definition. The managed runtime cannot
resolve this undefined type, and throws an exception. RESOLUTION Define an empty _TREEITEM structure in the application,
such as the following:
struct _TREEITEM
{
};
STATUSMicrosoft has confirmed that this is a bug in the Microsoft
products that are listed at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 4/30/2003 |
---|
Keywords: | kbbug kbManaged kbTreeView KB320082 |
---|
|