I've a old C/C++ class that i want to refactor and access from .net using PInvoke
All P/Invoke tutorials refers to call win32 api but i haven't found anything to code the other side
Any tips/ideas ? my c/c++ experience is pretty rusty :(
UPDATE - this is for wrapping existing C/C++ code so it can called from .net using P/Invoke
How do i define the C function so from .net i can get the value using ref/out strings