Re: Using a C# DLL with Delphi (v6)



Hi jklimek,

So, I'm wondering how exactly I would get started with using a C# DLL.

C# produces .NET assemblies, which you can use in the Win32 world through a COM layer if you wish.


I have access to the C# DLL source and I'm assuming there will be a
header file.

No, C# doesn't know about header files - no more HeadConv ;-)

Will I need to create a unit (.pas file) that simply defines all of the
functions in the C# DLL?

No. See http://www.drbob42.com/examines/examin36.htm for an example to use C# .NET "DLLs" in Win32 as COM...


Groetjes,
          Bob Swart (aka Dr.Bob - www.DrBob42.com)

--
Bob Swart Training & Consultancy (eBob42) - Borland Technology Partner
Delphi 2005 self-study training books: http://www.drbob42.com/training
.



Relevant Pages