Excel AddIn and comctl32.dll RRS feed

  • Question

  • Hello. I'm developing Excel 2010 application-level addin using VSTO 4.0 and .Net Framework 4.0. In my addin I use some third party MFC dialogs and controls. And I noticed what all MFC controls have Win2K style (flat buttons, colorless and other). I think what reason is in Common Controls library (comctl32.dll). I change Excel manifest (C:\Program Files\Microsoft Office\Office14\excel.exe.manifest) and add to it <dependency> element:

          <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="" processorArchitecture="X86" publicKeyToken="6595b64144ccf1df" language="*"/>

    And it worked. Is Is there any other way by which I can explicitly specify that the library Common Controls should be loaded? For example, adding a <dependency> element to addin's manifest. The way to change the Excel 's manifest does not suit me.

    Sunday, October 9, 2011 11:11 AM