I’m using the evaluating version (v6.5.0.1295) and I would like to import a dll library written in C# (.NET assembly) into a VCL Delphi project.
Currently I’m using Embarcadero Delphi 10.2 build 3.
I searched for some guidelines and I looked into the example folder, but I cannot find something really helpful.
I tried the ‘Module Explore’ example but I cannot load my dll with this application.
In addition, I don’t know how to use the function ‘Import from .NET Assemblies’ from Delphi’s Tools, because running it on my dll, the unit .pas generated an empty result even if I didn’t get any error.
Since the dll library that I have to import it is not written with the basic plugin interface (I tried to import it, but the .pas file is empty) and I cannot modify the dll project:
is there a chance to create a wrapper to add the plugin interface?
if yes, is it possible to do it automatically or I have to do it by myself?
You should create a wrapper for .NET assembly.
It can’t be done automatically so you have to create it manually.
Note: usually you don’t need all members so you can put only needed methods/properties to wrapper.