Can somebody tell me where to find an example in how to make an DLL (WindowsControlLibrary) in Oxygene for .NET?
In the old Delphi, you make an export section.
If you whant to make it compatible with delphi then you have to indicate a "stdcall" Calling Convention
namespace ClassLibrary2;
interface
type Class1 = public class
private
protected
public
[UnmanagedExport('ShowMessage'), System.Runtime.InteropServices.CallingConvention.StdCall]
class method ShowMessage(aMsg : String); end;
implementation
class method Class1.ShowMessage(aMsg : String);
begin
System.Windows.Forms.MessageBox.Show(aMsg);
end;
end.