Anonymous user
Call a function in a shared library: Difference between revisions
Call a function in a shared library (view source)
Revision as of 15:22, 11 April 2009
, 15 years agoadded c#
(→{{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}}==
|