I
IUnknown via .NET 247
I am having a C++ component (managed) and I want to use this frommy C# client. One of the methods in the C++ component takes in aLP to a struct (LPMAPIPROP). I want to expose this as a Objectto the C# client. How can I type cast to LPMAPIPROP or any otherSTRUCT from Object.
C2440: 'type cast' : cannot convert from 'System::Object __gc *'to 'LPMAPIPROP'
C2440: 'type cast' : cannot convert from 'System::Object __gc *'to 'LPMAPIPROP'