Legacy ActiveX control that uses XP Style

G

Guest

I'm calling an ActiveX control which uses Common controls v6.0 to display XP
styles. I understand that you have to call InitCommonControls and add the
following manifest to your exe.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity type="win32" processorArchitecture="*" version="6.0.0.0"
name="mash"/>
<description>DNVS.Risk.Framework.Win.Exe</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls" version="6.0.0.0"
language="*"
processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
/>
</dependentAssembly>
</dependency>
</assembly>

However when I try to build my app I get the following error message:
Error 3 Could not find file 'Microsoft.Windows.Common-Controls,
Version=6.0.0.0, Culture=*, PublicKeyToken=6595b64144ccf1df,
ProcessorArchitecture=*, Type=win32'. DNVS.Risk.Framework.Win.Exe

I've searched for the comctl32.dll on my disk and I can find two:

C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.0.0_x-ww_1382d70a (version 6.0.2600.0)

and

C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9 (version 6.0.2900.2180)

How should I change the manifest? Is this my problem?

Thanks

Dave
 
G

Guest

I've moved this on a little further. I've include the manifest as an embedded
resource in my project. It now builds OK.

I've switched on mixed mode debugging and I can see two copies of
comctl32.dll being loaded. Is this likely to cause me problems?

'DNVS.Risk.Framework.Win.Exe.exe': Loaded
'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll', Exports loaded.
'DNVS.Risk.Framework.Win.Exe.exe': Loaded
'C:\WINDOWS\system32\comctl32.dll', Exports loaded.

My application actually consists of a main EXE and a DLL. I've added the
manifest to the EXE and put the InitCommonControls call in the DLL. The DLL
calls the ActiveX control. The dialog is still displaying the controls
incorrectly. What am I doing wrongly?

Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top