J
jp2msft
I've got a library from a government agency that only comes with the .lib and
a header (.h) file.
The header shows me what methods are exposed, but I'm not sure if I can get
to those features through a .Net Framework.
If I want to call one of the four (4) exported methods of the DLL, how would
I go about formatting the P/Invoke call to them?
Here is an example of one of the exposed methods (from the header):
extern void standardCalc(double param(), double inputs(), double outputs());
I'm getting rather used to C# syntax, but I think "double param()" is an
array of doubles - what I'd call "double[] param" in C#. If I am mistaken,
please correct me!
So, how would I go about invoking this exposed method from the library file
"aesra10.lib"?
Also, all examples of P/Invoke only list the file name, not it's location.
Do all files that I invoke this way have to be in a certain folder or can I
direct it to the folder where my application will be storing this DLL?
a header (.h) file.
The header shows me what methods are exposed, but I'm not sure if I can get
to those features through a .Net Framework.
If I want to call one of the four (4) exported methods of the DLL, how would
I go about formatting the P/Invoke call to them?
Here is an example of one of the exposed methods (from the header):
extern void standardCalc(double param(), double inputs(), double outputs());
I'm getting rather used to C# syntax, but I think "double param()" is an
array of doubles - what I'd call "double[] param" in C#. If I am mistaken,
please correct me!
So, how would I go about invoking this exposed method from the library file
"aesra10.lib"?
Also, all examples of P/Invoke only list the file name, not it's location.
Do all files that I invoke this way have to be in a certain folder or can I
direct it to the folder where my application will be storing this DLL?