calling C code from VB.NET

C

CAFxX

hi, I need just a little clarification about foreign language calling in
VB.NET (VS2005).
I have a solution containing two projects, one in VB.NET and the second
in C (a library).
The VB.NET project needs to call functions contained in the C library.
To do so, is it mandatory for the C library to be compiled as a DLL? In
short, isn't static linking possible? (I strongly doubt it, but I wanted
to ask anyway).
Thank you very much for your attention,
Carlo Alberto Ferraris
 
D

David Browne

CAFxX said:
hi, I need just a little clarification about foreign language calling in
VB.NET (VS2005).
I have a solution containing two projects, one in VB.NET and the second in
C (a library).
The VB.NET project needs to call functions contained in the C library.
To do so, is it mandatory for the C library to be compiled as a DLL? In
short, isn't static linking possible? (I strongly doubt it, but I wanted
to ask anyway).


See

Sample: Mixing Unmanaged C++, C++/CLI, and C# code
http://blogs.msdn.com/junfeng/archive/2006/05/20/599434.aspx

David
 

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