Visual C# General
Create a class:
public static class MyNativeClass
{
[DllImport("someDll.dll")] // Your DLL name / complete path from where it should load (better copy in debug or release and use as in example
public static extern void NativeFunction(int number);
// Repeat the same for all your function in that dll
}
not call function from C#
MyNativeClass.NativeFunction(1);
or remove the static keyword to make your class nonstatic, create an object and call like:
MyNativeClass nativeObject = new MyNativeClass();
nativeObject.NativeFunction(1);
I hope this will help.
Best Regards,
Rizwan aka RizwanSharp