I tried to use the Unmanaged Exports library (.NET DllExport) in the hope that with its help you will be able to use your DLL without the .net framework .
Example:
[return: MarshalAs(UnmanagedType.LPWStr)] [DllExport("Test", CallingConvention = CallingConvention.Cdecl)] public static string Test( [MarshalAs(UnmanagedType.LPWStr)] string firstName, [MarshalAs(UnmanagedType.LPWStr)] string lastName) { return string.Format("Hello {0} {1}", firstName, lastName); } I connected my DLL to the program in Delphi , but when I called the method, I got an error that the .net framework missing
As I understand it, my DLL should become (unmanaged code) and work without the .net framework . Am I right, or do I not fully understand the point?