November 06, 2020 How to load a dll which is written by dlang with a c interface from a c program static/dynamic link on windows? | ||||
---|---|---|---|---|
| ||||
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? |
Copyright © 1999-2021 by the D Language Foundation