Inserted OLE Object in my own control fails to display equations RRS feed

  • Question

  • My team made a control used to edit text and picture etc. We added an "Insert OLE Object" function used to insert files like word and excel. The sudo-code is: 

    COleInsertDialog dlg;

    COleClientItem *pItem = NULL;


     select files


      // Initialize the item from the dialog data.

    if (!dlg.CreateItem(pItem))


    AfxThrowMemoryException();  // any exception will do

    return ;



            Display the OLE in the View



           The codes work in most cases, but when I try to insert a Word file containing math equations, the math equations can't be displayed correctly and a lot of question marks are  displayed instead.

    Thursday, July 11, 2019 2:42 AM