Create DLL that can be called by C# EXE

  • Thread starter Thread starter Jerry West
  • Start date Start date
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.
 
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.
 
Back
Top