none
VC++ 6.0, Comctl32.lib and Excel 2013 RRS feed

  • Question

  • Hi Team,

    We have a VC++ COM control that created a treeview compoent using comctl32.lib. The control is referenced in the VC++ code as #pragma comment(lib, "comctl32.lib").

    When we try to add this control in Excel 2013, we get the below error.  The same component is working fine with Excel 2003/2007/2010. 

    ---------------------------

    Microsoft Visual C++ Debug Library

    ---------------------------

    Debug Assertion Failed!

    Program: C:\Program Files (x86)\Microsoft Office\Office15\EXCEL.EXE

    File: c:\program files (x86)\microsoft visual studio\vc98\atl\include\atlwin.h

    Line: 2155

    Expression: m_hWnd == hWnd

    For information on how your program can cause an assertion

    failure, see the Visual C++ documentation on asserts.

    (Press Retry to debug the application)

    ---------------------------

    Abort   Retry   Ignore  

    ---------------------------

    Microsoft Visual C++ Debug Library

    ---------------------------

    Debug Assertion Failed!

    Program: C:\Program Files (x86)\Microsoft Office\Office15\EXCEL.EXE

    File: c:\program files (x86)\microsoft visual studio\vc98\atl\include\atlctl.h

    Line: 842

    Expression: h != 0

    For information on how your program can cause an assertion

    failure, see the Visual C++ documentation on asserts.

    (Press Retry to debug the application)

    ---------------------------

    Abort   Retry   Ignore  

    I would like to know if the forms controls have been diables in the Office 2013 version? also, whether the controls are diasbled for sercurity reasons as part of patch updates.

    Friday, February 27, 2015 12:22 PM

All replies

  • Hi Anbu_1987,

    Have you installed any updates recently? There was a security update in December 2014 which may cause the problem with form controls for Office applications. But I'm not quite sure if your problem is caused by this reason.

    MS14-082: Description of the security update for Microsoft Office 2013: December 9, 2014

    To determine if it's this update that impact your COM control, you could test it using Office application without this security update. Or try to go to control panel and uninstall this update.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    Monday, March 2, 2015 8:43 AM
    Moderator
  • Hi Cailen Zhong,

    Thanks for the response.

    Please let us know, whether we need to uninstall office updates alone or windows updates also.

    Is there any particular office updates to uninstall to resolve this problem?

    Thanks,

    Friday, March 6, 2015 11:42 AM
  • Please try to uninstall this security update(KB2726958) from the Programs and Features item in Control Panel. If there're many computers that have this problem, to reduce risk, you could try one of them, or use another clean machine without this update.

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, March 9, 2015 6:35 AM
    Moderator