don't dream your life, live your dreams !
Let’s create Test.dll library :
// Compile with: /LD int __declspec(dllexport) sum(int a,int b) { return a+b; } |
[DllImport("Test.dll"] public static extern int sum(int a,int b); |
Now you can use it like this
int result = sum(3,4); |
Copyright © 2024 My linux world - by Marc RABAHI
Design by Marc RABAHI and encelades.
admin