

For example, you could enable the extended set of controls as shown in the following example. Hr = g_spMIC.CoCreateInstance(CLSID_MathInputControl) Īfter calling CoInitialize on the control pointer, you have a reference to the control and can access the control's methods. The following code shows how you can call CoInitialize on the control pointer. The following code can be placed in a class or as a global variable in your application's implementation: CComPtr g_spMIC // Math Input Control

Declare the Control Pointer and Call CoInitialize on the Control PointerĪfter you have included the headers for your control, you can declare the control pointer and can call CoInitialize on it to create a handle to the math input control interface. This code will add support for the math input control to your application. The following code should be placed at the top of your code where you will be using the math input control. Include Headers and Libraries for the Math Input Control

Personally I can recommend this type of program that is very useful and that I often use in my Power Point slides.
