CAIBird <CA*****@discussions.microsoft.comwrote:
>I have a dll created earlier by VC++ which export a class. And now i want to
use this class in C# code, how can i do it?
And what if it is a static library(.lib)?
By far the easiest is to open up your DLL project again, turn on "CLI"
in Projects>Settings>General, and turn your class into a "ref class"
rather than just a "class", and rebuild. This way it will produce a
normal .net assembly with classes that can be used by any other .net
language.
--
Lucian