How to load a dll which is written by dlang with a c interface from a c program static/dynamic link on windows?
ll
aliule2020 at 163.com
Fri Nov 6 19:22:59 UTC 2020
e.g.
mydll.d:
import core.sys.windows.windows;
import core.sys.windows.dll;
extern (C) export int foo(ref int a[10],ref int b[10],ref int
c[10])
{
for(int i=0;i<10;i++)
{
c[10]=a[10]-b[10];
}
return 0;
}
mixin SimpleDllMain;
test.c:
How to write in both static and dynamic mode?
More information about the Digitalmars-d-learn
mailing list