Calling DLL coded in D from Java

2015-06-16 Thread DlangLearner via Digitalmars-d-learn
I'd like to know if it is possible to call an DLL coded in D from Java? I don't have any knowledge on DLL calling mechanism, so I am wondering if this is possible or any special procedure should be followed. I indeed tried a small example but didn't succeed. First I created an DLL from the

Re: Calling DLL coded in D from Java

2015-06-16 Thread Rikki Cattermole via Digitalmars-d-learn
On 17/06/2015 2:18 p.m., bitwise wrote: On Tue, 16 Jun 2015 18:47:03 -0400, DlangLearner bystan...@gmail.com wrote: I'd like to know if it is possible to call an DLL coded in D from Java? What you're looking for is JNI (Java Native Interface). If you export your D functions correctly, as

Re: Calling DLL coded in D from Java

2015-06-16 Thread bitwise via Digitalmars-d-learn
On Tue, 16 Jun 2015 18:47:03 -0400, DlangLearner bystan...@gmail.com wrote: I'd like to know if it is possible to call an DLL coded in D from Java? What you're looking for is JNI (Java Native Interface). If you export your D functions correctly, as you have done(extern(C) export) then