Click here to Skip to main content
15,889,034 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: string copy problem in structure variable Pin
amistry_petlad12-Apr-10 12:49
amistry_petlad12-Apr-10 12:49 
QuestionHow To change degault font of ToolTip control? Pin
Atul234-May-07 23:38
Atul234-May-07 23:38 
Questionerror problem Pin
anu jaggi4-May-07 23:02
anu jaggi4-May-07 23:02 
AnswerRe: error problem Pin
amitmistry_petlad 4-May-07 23:58
amitmistry_petlad 4-May-07 23:58 
QuestionCreate Registry Entry in Vista ... Pin
Manjunath S4-May-07 22:33
Manjunath S4-May-07 22:33 
AnswerRe: Create Registry Entry in Vista ... Pin
prasad_som4-May-07 22:50
prasad_som4-May-07 22:50 
GeneralRe: Create Registry Entry in Vista ... Pin
Manjunath S4-May-07 22:56
Manjunath S4-May-07 22:56 
AnswerRe: Create Registry Entry in Vista ... Pin
Sameer_Thakur4-May-07 23:03
Sameer_Thakur4-May-07 23:03 
I faced the same problem with my application.

I used a manifest.xml in my application as a resource and it solved the problem.
Here are the contents of that manifest.xml file.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="CompanyName.ProductName.YourApp"
type="win32"
/>

<description>Your application description here.</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>

<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel
level="highestAvailable"
uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>

</assembly>

Call InitCommonControls() in the InitInstance() of ur application
BOOL CURApp::InitInstance()
{
InitCommonControls();
--------------------------
----------------------
}

U can follow these steps to include manifest.xml in ur project.
Once writing manifest.xml is completed, you will want to add the manifest.xml file to your project in the resource editor. In Visual Studio 6, hit Ctrl+R to add a new resource, select all files and double click manifest.xml to add the file. When you see the custom resource dialog, enter the number "24" as the resource type and hit OK. Once imported, right click on the resource to open the properties window and change the ID to the number "1".



Sameer Thakur
GeneralRe: Create Registry Entry in Vista ... Pin
Manjunath S4-May-07 23:21
Manjunath S4-May-07 23:21 
GeneralRe: Create Registry Entry in Vista ... Pin
Sameer_Thakur4-May-07 23:33
Sameer_Thakur4-May-07 23:33 
GeneralRe: Create Registry Entry in Vista ... Pin
Manjunath S4-May-07 23:45
Manjunath S4-May-07 23:45 
GeneralRe: Create Registry Entry in Vista ... Pin
Sameer_Thakur5-May-07 0:00
Sameer_Thakur5-May-07 0:00 
GeneralRe: Create Registry Entry in Vista ... Pin
Manjunath S5-May-07 0:14
Manjunath S5-May-07 0:14 
AnswerRe: Create Registry Entry in Vista ... Pin
Michael Dunn5-May-07 7:06
sitebuilderMichael Dunn5-May-07 7:06 
GeneralRe: Create Registry Entry in Vista ... Pin
Manjunath S6-May-07 20:05
Manjunath S6-May-07 20:05 
GeneralRe: Create Registry Entry in Vista ... Pin
Michael Dunn6-May-07 20:14
sitebuilderMichael Dunn6-May-07 20:14 
GeneralRe: Create Registry Entry in Vista ... Pin
Manjunath S6-May-07 20:44
Manjunath S6-May-07 20:44 
AnswerRe: Create Registry Entry in Vista ... Pin
Paresh Chitte6-May-07 18:40
Paresh Chitte6-May-07 18:40 
GeneralRe: Create Registry Entry in Vista ... Pin
Manjunath S6-May-07 21:33
Manjunath S6-May-07 21:33 
QuestionProblem in Enable and disable ToolBar Pin
mohindar_kks4-May-07 21:42
mohindar_kks4-May-07 21:42 
AnswerRe: Problem in Enable and disable ToolBar Pin
prasad_som4-May-07 22:55
prasad_som4-May-07 22:55 
GeneralRe: Problem in Enable and disable ToolBar Pin
mohindar_kks4-May-07 23:38
mohindar_kks4-May-07 23:38 
AnswerRe: Problem in Enable and disable ToolBar Pin
Sameer_Thakur4-May-07 23:51
Sameer_Thakur4-May-07 23:51 
GeneralRe: Problem in Enable and disable ToolBar Pin
mohindar_kks6-May-07 19:34
mohindar_kks6-May-07 19:34 
GeneralRe: Problem in Enable and disable ToolBar Pin
Sameer_Thakur7-May-07 3:29
Sameer_Thakur7-May-07 3:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.