I have .lib file with its header (.h) file. This file have a few functions that need to be used in C# application.
After googling i found that i need to create a dynamic dll from this static library and call this dynamic dll from C# code using interop.
- I have created a win32 project and selected type dll.
Included header file and added .lib to additional dependencies.
I am able to see the fucntions defined in the static library (when i press ctrl + space).
As a totaly newbie i do not know how can i export the function, which is, in .lib with following signature
void testfun( char* inp_buff, unsigned short* inp_len, char* buffer_decomp,unsigned *output_len,unsigned short *errorCode)
I want same signature in my dynamic dll with a diffrent name.
what to write in header file and .cpp file?