470,849 Members | 1,071 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,849 developers. It's quick & easy.

Legacy ActiveX control that uses XP Style

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=""
name="Microsoft.Windows.Common-Controls" version=""

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=, 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)


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?


Jun 7 '06 #1
1 1859
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?

Jun 8 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by wang xiaoyu | last post: by
1 post views Thread by John Olbert | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.