I have a library that is published by a governmental, non-profit organization on how to generate models from data. It supplies a library file (coilmodel.dll) and a header (coilmodel.h).
From the header, I see there are only four (4) exported methods that our applications will need.
If I were to use P/Invoke, does the DLL need to be placed in a certain folder on the PC? I have not seen any examples of how to point to a DLL file in another location. Could someone give me an example?
If I were to write a "managed code" wrapper for the DLL, could this be done in C#, or would I need to write the wrapper in C++ as well? I have not used C++ since C# came out, so I would like to see how to do this as well.
In my header file, the four (4) exported methods are shown below:
#ifndef coilmodel_h
#define coilmodel_h
#ifndef EXPORT
#define EXPORT
#endif
EXPORT int steadyFor(double Par[], double Inlet[], double Outlet[]);
EXPORT int dynamicFor(double time[], double Par[], double Inlet[], double Outlet[]);
EXPORT int steadyInv(double Par[], double Coeff[], double Inlet[], double Outlet[]);
EXPORT int dynamicInv(double time[], double Par[], double Coeff[], double Cap[], double Inlet[], double Outlet[]);
#endif
Thanks for your help!
~Joe