I want to create a .NET assembly that can be accessed from unmanaged code (Delphi 5).
I have found Unmanaged Exports and followed the steps there but I am unable to
Just in case someone will meet the same problems...
Some errors on my side:
file: DllExportAttribute.cs
public CallingConvention CallingConvention { get; set; }
public string ExportName { get; set; }
file: $projectname$.csproj
Those are easy to fix.
Here is one pretty serious. When making implib from resulting \x86\MyDll.dll - the name of dll in lib changes to \MyDll.dll ... you can make tdump MyDll.dll and will get in exports section "\MyDll.dll" instead of "MyDll.dll".
Because of this problem dll can't be found by the soft that use resulting lib... in my situation it can be found only in c:\MyDll.dll
Solved by making "coff2omf -lib:ca MyDll.lib" on the initial lib. But before that spent a day for looking solution...