We are currently working on a project, where my friends are writing some data processing code with C (dll). I was told to build a gui and handle the database stuff with C#.NET.
can i link those libraries to my program and how do i do that?
Printable View
We are currently working on a project, where my friends are writing some data processing code with C (dll). I was told to build a gui and handle the database stuff with C#.NET.
can i link those libraries to my program and how do i do that?
You need to have a look at www.pinvoke.net to see examples of DllImport.
There you can find windows api's function that much signatures method in C#.
Regards,
Tom
Code:[DLLImport("dllname.dll")]
public static extern void functionName(params);
...
functionName(...); //Calling function
thanks guys