Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C# dll consumed by Delphi 6

Status
Not open for further replies.

IAdams

MIS
Jul 9, 2008
11
US
How do I consume a C# dll using Delphi 6? I have tried creating and using a TLB file that is created by Delphi as a _TLB, but it is a little buggy when I compile it and it only sees the classes and not the methods or properties in the C# dll.

Is there another way to consume the dll directly without TLB?

Thanks
 
Add a COM compatibility layer to the C# DLL (if it's your's), if it's not your's, either have it added, or create a C# DLL wrapper with a COM layer. These require you to access it COM-style :-;
Fouth option would be to use it from a .NET runtime (capable) environment, like BDS200x.
Fifth and most simple option would be to request a 'normal' DLL from the supplier (assuming it's 3rd party stuff)

HTH
TonHu
 
Thanks for the feedback. The C# dll is something I wrote so I have complete control. I'll look carefully at all the options and compile settings. It just seems to only expose certain things (classes but not methods, properties) and I am not sure why.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top