473,499 Members | 1,551 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="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
Jun 7 '06 #1
1 1930
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
Jun 8 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5965
by: wang xiaoyu | last post by:
Hello: i want use activex in wxpython program,but when i use MakeActiveXClass an exception occurs. this is my source code dealing the DICOM ocx.I must note that in this program "hwtxcontrol" is...
0
2165
by: BestNews | last post by:
OS: XP ..Net= framework = 1.0.3705 VS.Net IDE = 7.0.9466 1. I used an ActiveX control in C# client Application. After executing Aximp of ActiveX control. I derived a class from the AxHost.
1
2141
by: torbs | last post by:
How can I create a fade with javascript that fade an activex object (quicktime) to the background and not to the IE windowed control. I call this function several times, each time decreasing the...
3
2307
by: fumihiko | last post by:
Hi, I created an activex control (C++), and it uses another COM dll (C++). This COM dll links with a static library that dose some calculation. (both are debug multithreaded dll) I created a...
0
4395
by: ann | last post by:
Hi, I am trying to add an ActiveX control on my ASP.NET web form (the language for code behind is C#). I have some client-side vbscript to handle events from the html input buttons. In the...
0
1055
by: John Olbert | last post by:
I have been given the task of finding ways to use legacy ActiveX controls in C# applications under Vs2005/Net2.0. At this time I am trying to use a number of ActiveX controls built with Visual...
1
1418
by: John Olbert | last post by:
We are trying to use legacy Visual Basic 6 ActiveX controls in C# projects under Vs2005. The importing into Vs2005 Tools of the registered Ocx works fine. We can place an instance of the control on...
7
5799
by: Artie | last post by:
Hi, Our team have a web project which includes some C# ActiveX DLLs. On some developers' PCs, the code which calls methods in the ActiveX dll is succesful - no exceptions. On other PCs, the...
1
8234
by: kret | last post by:
Hi, this is my first post so first of all I would like to say hello :) Now getting to my problem. In my job I have to create an ActiveX control in .NET 1.1 that can be lunched from IE....
0
7130
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7007
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7220
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6893
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5468
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4918
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4599
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3090
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
664
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.