Hello folks,

I've got a conundrum that Google was unable to fix, so here's hoping someone here knows how.

I've got an application and a Delphi DLL and now what I need to do is write a C# DLL which exposes a number of functions the Delphi DLL will use. I'm still fairly new to C#, but not to C++ so I've got a fair understanding. But what I can't seem to figure out is how to expose a function such that the Delphi DLL can map to it. Any suggestions? Tutorials? Snippets?

Thanks in advance,

Scott

Recommended Answers

All 2 Replies

You'll probably have to make the C# code a COM object. This link has an example.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.