(Initial info: .Net 2003 on Win2000)
I'm developing a .Net App that uses a dll (say, dll_1)
created in VC6 and _successfully_ recompiled in .Net 2003
(unmanaged, no wrappers). The dll_1 is set as a dependency
in the application project properties (Linker->Input-
Additional Dependencies).
The application has "Use Managed Extensions" turned on
although it was not originally created as managed
(actually there is not a single managed class there. The
only reason I had to use managed extensions was the
necessity to use a Windows Forms Control).
When I compile the application I get a linker error "error
LNK2020: unresolved token (0A00008F) UnmanagedClass. __dtor
The "UnmanagedClass " is defined in another dll that dll_1
depends on.
Question: as far as I understand, the linker looks for the
definition of dtor as it should present in all managed
classes/wrappers. But all my classes are unmanaged. BTW,
this is the only error I get. If I remove the code that
uses classes from dll_1 (class names, calls to functions
and #include statements) the application works fine.
How do I solve the problem?
Thanks heaps for any help.