Home All Groups Group Topic Archive Search About

Static linking to unmanaged library

Author
26 Jan 2006 3:12 PM
S Wheeler
Hi VB.net'ers -

I am doing more and more vb.net programming, and was curious to know if
there is a way to link a static library (unmanaged C++) with a vb.net app. I
know I can call methods in a unmanaged dynamic library (dll), but here I
have some generic, mostly portable unmanaged C++ code compiled as a static
lib; is there any way to instantiate objects and/or call methods in my
library from vb.net? Does anybody know if this can be done from other
managed languages (i.e. c#)?

Thanks,
....

Author
26 Jan 2006 8:41 PM
Mattias Sjögren
>is there any way to instantiate objects and/or call methods in my
>library from vb.net? Does anybody know if this can be done from other
>managed languages (i.e. c#)?

No the VB.NET or C# compilers can't do this. You have to link it into
a DLL first.


Mattias

--
Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.