Version 2 (modified by Charles, 14 years ago) |
---|
DllImport
Cobra can invoke C-based functions found in native libraries such as those ending in .dll and .so. This works even on non-Microsoft platforms such as Windows and Linux.
The test case for this, which also serves as an example, is at: http://cobra-language.com/trac/cobra/browser/cobra/trunk/Tests/720-libraries/100-microsoft/510-dll-import.cobra
Original discussion is at: http://cobra-language.com/forums/viewtopic.php?f=4&t=710
to-do: put direct examples here for both Windows and Linux/Mac
See also: LibraryTopics