Creating DLLs in VB.NET

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Newbie to .net.....

How do I create a DLL that has a function exposed to any program that calls
it. This will return a Char[] to the calling program.
 
ellio514 said:
Newbie to .net.....

How do I create a DLL that has a function exposed to any program that calls
it. This will return a Char[] to the calling program.

Start a class library project in .NET. This will give you the dll you
are looking for.

to expose a function, just use (vb code):

Public Function FunctionName() as Char()

End Function

If you want to expose that function w/o having to instantiate a class,
use the "shared" keyword.

Chris
 
If you are looking at how to calling the DLLs created in VB.NET from VB6,
there are a few steps you need to do.
I found an article about that:
http://www.findarticles.com/p/articles/mi_zddvs/is_200504/ai_n13591391


Chris said:
ellio514 said:
Newbie to .net.....

How do I create a DLL that has a function exposed to any program that
calls it. This will return a Char[] to the calling program.

Start a class library project in .NET. This will give you the dll you are
looking for.

to expose a function, just use (vb code):

Public Function FunctionName() as Char()

End Function

If you want to expose that function w/o having to instantiate a class, use
the "shared" keyword.

Chris
 
Back
Top