Dll with vb.net

  • Thread starter Thread starter Massimo Capetola
  • Start date Start date
That depends on what you mean by that. You can't export functions, as you
would with C/C++ from a DLL such that it could be called from unmanaged
code, no. You can build a managed code DLL which would be callable from
managed code, though, yes.

Paul T.
 
Ok, but how can I export functions in my dll ?

I must call functions of my dll in my exe project.
 
If your EXE is managed code, you put a 'using' clause in your code, add a
reference to the assembly in your project, and go.

Paul T.
 
Managed code is what is generated when you build a program based on the .NET
Compact Framework. You can read up on the terminology in the VS.NET 2003
help.

Unmanaged code is what you build with something like eMbedded C++. It is
tied to a particular type of processor, unlike managed code, which is not.

If you are trying to build a DLL for something like implementing a Software
Input Panel or some other OS DLL, you cannot do that from VB.NET or C#. If
you are building an EXE with VB.NET or C# and just want to use another DLL
that you build with VB.NET or C# from that EXE, then you are writing all
managed code and can follow my instructions.

Paul T.

Massimo Capetola said:
Sorry but what do you mean in "EXE managed code"?
"Paul G. Tobey [eMVP]" <ptobey_no_spam@instrument_no_spam.com> a écrit dans
le message de news:[email protected]...
If your EXE is managed code, you put a 'using' clause in your code, add a
reference to the assembly in your project, and go.

Paul T.
 
If you mean by "export" that LoadLibrary can be called by some C++ app, then
it's not possible.
 
Back
Top