type casting object to STRUCT or LP to STRUCT

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top