Hi to everyone.
I have a create dll using pure c. I have used some structure in the dll. I defined the structure in the dll itself as extern "C" declspec (dll export) structure_name.
I want to write wrapper class in .Net to use the function in the pure c dll.
When i use the use that structure in the wrapper dll. I gives error:
1) The type or namespace name 'structure_name' could not be found (are you missing a using directive or an assembly reference?)
2) Pointers and fixed size buffers may only be used in an unsafe context.
How to fix this error?
Thanks in advance.
View Complete Post