Forums

JNI

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

JNI

Postby evsmith981 » Sat May 03, 2014 12:26 am

Does cobra have some facility equivalent to Java's JNI?
evsmith981
 
Posts: 2

Re: JNI

Postby Charles » Sun May 04, 2014 8:51 am

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.
Charles
 
Posts: 2515
Location: Los Angeles, CA


Return to Discussion

Who is online

Users browsing this forum: No registered users and 89 guests

cron