An unhandled exception of type 'System.TypeLoadException' occurred in
Conbox.exe
Additional information: Could not load type _TREEITEM from assembly Conbox,
Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
The project uses multiple resource files and all was ok until I tried to
build the app with /clr. It built ok (after changing a couple of settings)
but dies on the initialize. Anyone have any ideas? Thanks. Jon.
The problem occurs because the windows headers only do a forward declaration
of _TREEITEM, but no real declaration, so the compiler never generates
metadata for it.
The workaround is to put an empty definition of _TREEITEM in one of your
.cpp files
(I'm have this one pending to add to my faq.... just haven't had the time
:) )
--
Tomas Restrepo
tom...@mvps.org
"Tomas Restrepo [MVP]" <tom...@mvps.org> wrote in message
news:eTygYZi$CHA....@TK2MSFTNGP11.phx.gbl...
"jlea" <j...@leapsoft.com> wrote in message
news:uhAIRPt$CHA....@TK2MSFTNGP12.phx.gbl...