type casting object to STRUCT or LP to STRUCT

  • Thread starter Thread starter IUnknown via .NET 247
  • Start date Start date
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'
 
Back
Top