digitalmars.D.learn - How to load a dll which is written by dlang with a c interface from a
- ll (16/16) Nov 06 2020 e.g.
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?
Nov 06 2020