Call a function in a shared library: Difference between revisions
Content deleted Content added
→{{header|C}}: Python |
added c# |
||
Line 63:
<pre>internal openimage opens fake.img...
opened with handle 0</pre>
=={{header|C sharp|C#}}==
In Windows.
<lang csharp>using System.Runtime.InteropServices;
class Program {
[DllImport("fakelib.dll")]
public static extern int fakefunction(int args);
static void Main(string[] args) {
int r = fakefunction(10);
}
}</lang>
=={{header|Python}}==
|