Hi !

I have an MFC application that I have changed to be compiled as a mangaged application (/clr) and it was running ok before, now when I run it it throws an exception like this:

An unhandled exception of type 'System.TypeLoadException' occurred in test.exe

Additional information: Could not load type _TREEITEM from assembly TestApp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.

The exception comes when it is about to call a method, and that method is doing some stuff with a treeview control (adding new items) so it's related to that in some way, but it runs just fine if I turn of /clr.

Has any one else run into something similar to this ?

Mikael