Have used PInvoke to "wrap" 3 function from a dll. The dll did not have a manifest and there were a lot of #define for datatypes, so I had to work back through them to find all the basic datatypes. I used these when I put the functions in the snippets window of PInvoke assistant and generated signatures to use in C#.
With a little tweaking, I got it to compile and run. However, the output I'm getting is either not there or not what I expect. e.g have a ushort which should return a value found in the sccerr.h file which are in the range 0-100, I'm getting something over 33000.
Is the a way to get errors or warning from the dll or lib?
Jim