Create Native DLL

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

Guest

Hi

I don't know if it is possible, but I need to create a DLL in C# or
VB.Net, that can be invoke by function Loadlibrary from Delphi.

Is this possible? How?

Thanks a lot

Elton
 
Is this possible? How?

No. Or at least it's not possible to export functions as static entry
points. You can still LoadLibrary but that will not do you much good.



Mattias
 
Elton Rabello said:
Hi

I don't know if it is possible, but I need to create a DLL in C# or
VB.Net, that can be invoke by function Loadlibrary from Delphi.

Is this possible? How?

Thanks a lot

Elton


I think you have to write a call thru dll in C/C++ which then calls the real
dll. I'm not sure I understand. Do you want to call a C# dll from Delphi?

/Fredrik
 
Hi

I have to do a dll that can be loaded with the DLLImport of C# for
example, in case of Delphi, this use a LoadLibrary, because the function on
Delphi will map the functions of my dll, but on first call of LoadLibrary
this return "Unable to load DLL", this Delphi application don´t run with COM
and .Net objects, only native.

Thanks a lot, this is very important for me

Elton
 
Create it as a .NET class library and register it as a COM Object.

You registry it by using RegAsm.exe. Then import it into Delphi as a COM
object.
 
Back
Top