.NET dlls

  • Thread starter Thread starter Dim
  • Start date Start date
D

Dim

Just don't ask me why i need this ;-)

Is it possible to create a dll in let's say C# (.NET that is) and the use it
in Visual Basic???


I ran a simple test: a small Class Library project using
System.Windows.Forms and one method in the main class to display
a little Messagebox indicating that all worked allright.. I couldn't add a
reference to this dll from Visual Basic.. it just said "Cannot add
reference" ... so this way is probably wrong.
Is there any other way to achieve this?

Thx
 
Is it possible to create a dll in let's say C# (.NET that is) and the use it
in Visual Basic???

VB.NET or VB <= 6 ? Either way, the anwser is yes.



Mattias
 
Is it possible to create a dll in let's say C# (.NET that is) and the use it
in Visual Basic???

Yes, if you make it "COM visible", you can expose a .NET class as a
COM object and use it in VB6.

Search MSDN for "COM interop" - tons of material there.

Marc
================================================================
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
 
Back
Top