A
Albertas
Hello,
I'm building a program where i want to use function which is written
in C programming language. So I built .dll of it.
Functions parameters list looks this:
void function(char *input, char *output, int number_in, int number_out,
int *good);
In my C# project i have included it in following way:
[DllImport("Project1.dll")]
public unsafe static extern void function(char *input, char *output,
int number_in, int number_out, int *good);
So far I could not figure out myself how I can pass the parameters to
this function in C# environment. The second function parameter will
have the result values. So i need to extract them. Did I import my .dll
correct ? Could some one provide me with code example or explanation
how I could get it working?
Thank You.
I'm building a program where i want to use function which is written
in C programming language. So I built .dll of it.
Functions parameters list looks this:
void function(char *input, char *output, int number_in, int number_out,
int *good);
In my C# project i have included it in following way:
[DllImport("Project1.dll")]
public unsafe static extern void function(char *input, char *output,
int number_in, int number_out, int *good);
So far I could not figure out myself how I can pass the parameters to
this function in C# environment. The second function parameter will
have the result values. So i need to extract them. Did I import my .dll
correct ? Could some one provide me with code example or explanation
how I could get it working?
Thank You.