C# DLL called from Delphi (or Lazarus)
Budget: $10 – $30 USD
I would like a DLL produced using Visual Studio/C# that can be called from Delphi (or alternatively from FreePascal). The DLL should have functions that return string, int, and double values.
I also need a Delphi (or FreePascal) project that uses the DLL and calls each function in the DLL. This is intended to demonstrate how to import and use the DLL.
The DLL should be:
1. Written using C#
2. On the .NET5 or .NET6 framework
3. Be 64-bit
4. Be unmanaged and callable from unmanaged code (e.g., Delphi or FreePascal)
5. Not use COM
The Delphi (or FreePascal) project should use the DLL and assign values from each function to the corresponding types (string, integer, and double).
Optional, but nice to have features would include:
1. The DLL compiled to a single file (I'm not sure if this is even possible).
2. The addition of a function to the DLL that returns a struct... and to have an example of calling this from the Delphi project.
This project can optionally use a 3rd-party open-source tool, such as at: https://github.com/3F/DllExport.
I'm requesting this project because I am stumbling with producing a DLL from C# that can be called from Delphi and need a working example.
Two C# classes are provided, which can be used as a starting point for the DLL, with functions to export. One class has a struct included, the other does not.
I also need a Delphi (or FreePascal) project that uses the DLL and calls each function in the DLL. This is intended to demonstrate how to import and use the DLL.
The DLL should be:
1. Written using C#
2. On the .NET5 or .NET6 framework
3. Be 64-bit
4. Be unmanaged and callable from unmanaged code (e.g., Delphi or FreePascal)
5. Not use COM
The Delphi (or FreePascal) project should use the DLL and assign values from each function to the corresponding types (string, integer, and double).
Optional, but nice to have features would include:
1. The DLL compiled to a single file (I'm not sure if this is even possible).
2. The addition of a function to the DLL that returns a struct... and to have an example of calling this from the Delphi project.
This project can optionally use a 3rd-party open-source tool, such as at: https://github.com/3F/DllExport.
I'm requesting this project because I am stumbling with producing a DLL from C# that can be called from Delphi and need a working example.
Two C# classes are provided, which can be used as a starting point for the DLL, with functions to export. One class has a struct included, the other does not.