Is it possible to include a .NET class in a COM library class?

I am using the MathInputControl class in C # through the micautLib COM micautLib .

Example:

  MathInputControl mic = new MathInputControlClass(); mic.EnableExtendedButtons(true); mic.Show(); 

I use Microsoft.Ink , and I would like to send the Ink object to the MathInputControl object using the MathInputControl.LoadInk(IInkDisp ink); method MathInputControl.LoadInk(IInkDisp ink); . However, the IInkDisp interface is an unmanaged interface, and not one of the Microsoft.Ink managed classes implements it.

How can I send him an Ink managed entity?

+4
source share
1 answer

I would build a ComVisible wrapper that implements IInkDisp and delegates all the Microsoft.Ink objects you need.

+2
source

All Articles