I have an ActiveX control (written in C++) and reference it's RCW assemblies (created by aximp.exe) from a C# project.
In the C++ code implementing the Ax control, I have a class implementing an interface which is exposed as a property of the Ax control.
Looking at the generated RCW assemblies, I see the interface. And I can attempt to declare a variable of its type.
Now, if I only have a pointer to the instance of the C++ class implementing the interface in memory, is it possible to marshal its data into the managed C# object representing the interface using that pointer?
Please note that it's not the interface pointer. It's the pointer to the instance of the class that I have.