Static linking to unmanaged library

S

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,
....
 
M

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top