[mono-vb] include dll ( C# ? ) and C++ headers

Rolf Bjarne Kvinge rolflists at ya.com
Thu Sep 25 08:54:16 EDT 2008


Hi,

> 
> Hi
> I've two dll which were previously in a c# program.
> 
> using XPlane;
> 
> How can I deal with that in VB.NET?

Add a reference to your C# dlls:

vbnc -reference:CSharp1.dll,CSharp2.dll ... (if you use an IDE just add a
reference to each dll using the IDE).

and then:

Imports XPlane

in your VB file.

> Also I have some C/C++ header files. Can I use them or do I need to
program in C++?
No, C/C++ headers can't be used, you can compile C/C++ code into a library
and then use P/Invoke to access the library. Search MSDN for information,
it's explained in detail there.

Rolf

> 
> Thanks Michael
> 
> 
> 
> --
> View this message in context: http://www.nabble.com/include-dll-%28-C--
> --%29-and-C%2B%2B-headers-tp19652461p19652461.html
> Sent from the Mono - VB mailing list archive at Nabble.com.
> 
> _______________________________________________
> Mono-vb mailing list
> Mono-vb at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-vb



More information about the Mono-vb mailing list