Interop Reference
-
Hi, I have been given a dll (built using either C or C++, but not COM) and am trying to create a wrapper class to call its functions (using importdll). I have the header file (.h) so I know the function names and parameters. The trouble is, I don't know how to map them to C#. So, is there a reference website that shows what types I should use in C#? There are pointers to GDI+ bitmaps, pointers to stucts and dereferencing as well as simple types like ints. Any suggestions for a reference website or even a tool to generate the code for me? Thanks in advance Andy
-
Hi, I have been given a dll (built using either C or C++, but not COM) and am trying to create a wrapper class to call its functions (using importdll). I have the header file (.h) so I know the function names and parameters. The trouble is, I don't know how to map them to C#. So, is there a reference website that shows what types I should use in C#? There are pointers to GDI+ bitmaps, pointers to stucts and dereferencing as well as simple types like ints. Any suggestions for a reference website or even a tool to generate the code for me? Thanks in advance Andy