At first I admit that in C # I am green like chives. I want to prepare a C# DLL using the UnmanagedExports tool (
https://www.nuget.org/packages/UnmanagedExports) in the C # DLL. Here's an example by author:https://stackoverflow.com/a/2055508/1919267 . I do it same as this link.
I created DLL and use it in Delphi XE7, everything works fine. But there is a problem: when I want to use the same file in Lazarus, it returns nothing. The code:
Code: Pascal [Select]
var
adder : IDotNetAdder;
begin
try
CreateDotNetAdder(adder);
Writeln('4 + 3 = ', adder.Add3(4));
returns me 0 (so I am thinking that DLL response is nil). Is there any solution to fix that? Should I need to fix my pascal code or fix that DLL?