How to use Unmanaged Exports in Delphi

I'm making a project in C# and I want to use Unmanaged Exports and later to use it in Delphi. So can anyone explain me, how does Unmanaged Exports works, then how to use/import in Delphi. I'm using Visual Studio 2010 Express, on Windows 7 64 bit


The best description I've heard for unmanaged exports is "reverse PInvoke". These are limited to scalar types, but let you consume managed assemblies from native code without the overhead of COM Interop.

I haven't tried it, but you can do this in C# with a little tweaking.

As an alternative, Delphi Prism supports this functionality out of the box.

Brian Long wrote the classic article on Inverse P/Invoke to call managed C# code from Delphi Win32.

I'm not sure I'd use this kind of technology, but it is possible :-)


Need Your Help

Opening password protected site (Passport.js) with Phantom.Js by setting cookie

cookies express mongoose phantomjs passport.js

I am trying to access a passport protected page of my Express.js app with a Phantom.js script.

Using underscore/lodash as template engine in Sails JS

javascript node.js underscore.js sails.js lodash

I have a single page web app which uses backbone in the client, and node (Sails) on the server.