Is it possible to have the Marshaller move a C++ struct to a C# class? I defined the C# class with StructLayout Explicit, and mapped it. It works perfectly as a struct, but if I change to class, I get a buffer overflow. Is there some way to work around this? I need to add methods to these "classes", and making a wrapper class that has all the same fields seems like such a waste.
View Complete Post