Create DLL that can be called by C# EXE

J

Jerry West

Is it possible, using VB.NET to create a DLL that can be called by a C# EXE?

JW
 
K

kimiraikkonen

Is it possible, using VB.NET to create a DLL that can be called by a C# EXE?

JW

AFAIK yes, by programming DLL using managed .NET framework. That's why
managed .NET DLLs are compatible with all .NET languages.
 
T

Tom Shelton

Is it possible, using VB.NET to create a DLL that can be called by a C# EXE?

JW

Yep. Any VB.NET dll can be referenced from a C# project. Just follow
the .NET class library design guidlines found at:

http://msdn2.microsoft.com/en-us/library/ms229042.aspx

to avoid interop problems. For instance, VB.NET supports the concept of
optional parameters, C# doesn't. While it is possible to call these
methods from C#, it get's kind of ugly - so, it is better to use
function overloading instead of optional parameters if you plan on using
the dll across both languages.
 

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