common-controls version 6 not working when declared in dll in 64-bit version

  • Thread starter Thread starter Bezhad
  • Start date Start date
B

Bezhad

Guest
I have an XLL addin which loads more dlls. Each dll is trying to enable visual styles by declaring the dependency as:

#pragma comment(linker,"\"/manifestdependency:type='win32' \ name='Microsoft.Windows.Common-Controls' version='6.0.0.0' \ processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")

in the 64-bit version. There is a similar directive declared for the 32-bit version where processorArchitecture='x86'.

The 32-bit version seems to be working but not the 64-bit version unless I add the relevant section in excel.exe.manifest file.

Any ideas towards the resolution of this problem is greatly appreciated,

I need to mention that when running in Visual Studio two versions of comctl32.dll are loaded from:

c:\windows\WinSxS\amd64_..._6.0.177631217_...\comctl32.dll

and

c:\windows\WinSxS\amd64_..._5.82.177631217_...\comctl32.dll


but does not seem to have any effect.

Continue reading...
 
Back
Top