I used this[1] code for interfacing between C# and D once. It[2] demonstrates how to use a function callback passed from C# code. C# use winapi calling convention by default which caused me hours of headache untill I figured it out. Fortunately, there is an attribute to specify it.

[1] https://github.com/NightmareX1337/IDL/wiki
[2] https://github.com/NightmareX1337/IDL/blob/master/IDL/IDL.d

Reply via email to