Page 1 of 1

JNI

PostPosted: Sat May 03, 2014 12:26 am
by evsmith981
Does cobra have some facility equivalent to Java's JNI?

Re: JNI

PostPosted: Sun May 04, 2014 8:51 am
by Charles
Most of the time that I'm interested in a C library, someone has already made a .NET wrapper for it and I can just use that. But if that's not the case for you, check out "p/invoke":

http://cobra-language.com/trac/cobra/wiki/DllImport

http://stackoverflow.com/questions/4213 ... om-c-sharp

If you end up using it, feel free to help fill out the wiki page with some examples.