Click here to Skip to main content
15,893,508 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralTo sort shortcut menus programmatically [modified] Pin
Mushtaque Nizamani25-Feb-08 0:49
Mushtaque Nizamani25-Feb-08 0:49 
GeneralRe: To sort shortcut menus programmatically Pin
Iain Clarke, Warrior Programmer25-Feb-08 2:17
Iain Clarke, Warrior Programmer25-Feb-08 2:17 
GeneralRe: To sort shortcut menus programmatically Pin
David Crow25-Feb-08 2:43
David Crow25-Feb-08 2:43 
QuestionHow to restore dialog? Pin
sheetal_0625-Feb-08 0:47
sheetal_0625-Feb-08 0:47 
AnswerRe: How to restore dialog? Pin
David Crow25-Feb-08 2:52
David Crow25-Feb-08 2:52 
GeneralRe: How to restore dialog? Pin
sheetal_0627-Feb-08 17:44
sheetal_0627-Feb-08 17:44 
QuestionRe: How to restore dialog? Pin
David Crow28-Feb-08 2:35
David Crow28-Feb-08 2:35 
AnswerManifest for UAC, how to? (VC2005) [Solved] Pin
Maxwell Chen24-Feb-08 23:49
Maxwell Chen24-Feb-08 23:49 
[edit]
Problem is solved.

1. The IDE of Visual C++ 2005 does NOT support individual manifest files for different configurations (Win32 and x64) in one single project, even though the Project Properties look like it can. No, it doesn't!
Solution: Use the command-line to run MT.exe.

2. For compatible with WinXP, we should use the sample manifest mentioned HERE[^].
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
 <ms_asmv2:trustInfo xmlns:ms_asmv2="urn:schemas-microsoft-com:asm.v2">
  <ms_asmv2:security>
  // ....
[/edit]



I was going to add something in the manifest files for UAC for my project. My project has two configurations: Win32 and x64. So I added two manifest files, "vista32.manifest" and "vista64.manifest, into the project.

Then I went to the project properties:
Configuration Properties | Manifest Tool | Input and Output,
and added "$(InputDir)vista64.manifest" in "Additional Manifest Files" field for Win32 configuration,
and "$(InputDir)vista32.manifest" for x64 configuration.

The content of "vista64.manifest" looks like this:
(because of the domain policy, my IE rejects copy-n-paste on CP. There might be typo below.)
<?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="X64"
name="IntelClkRun64"
type=""/>
<description>some description</description>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
 <security>
  <requestedPrivileges>
   <requestedExecutionLevel
    level="requireAdministrator"
    uiAccess="false"/>
   </requestedPrivileges>
  </security>
 </trustInfo>
</assembly>

And Win32 version is similar. The only difference is below:
<assemblyIdentity version="1.0.0.0"
processorArchitecture="X86"
name="IntelClkRun32"
type="Win32"/>


It won't compile happily when file "vista32.manifest" is assigned to Win32 configuration and file "vista64.manifest" to x64 configuration. The error message is as below.
1> .\vista32.manifest : manifest authoring error c1010001: Values of attribute "processorArchitecture"
 not euqal in different manifest snippet.


How should I resolve this issue for Win32 and x64 co-existance in one project? And is there any mistake in the manifest content?

Thanks in advance!

  Maxwell Chen

modified on Tuesday, February 26, 2008 6:57 AM

QuestionRe: Manifest for UAC, how to? (VC2005) Pin
Maxwell Chen25-Feb-08 3:15
Maxwell Chen25-Feb-08 3:15 
QuestionGet Client Request Ip Pin
mirtu24-Feb-08 23:15
mirtu24-Feb-08 23:15 
AnswerRe: Get Client Request Ip Pin
Maruf Maniruzzaman24-Feb-08 23:49
Maruf Maniruzzaman24-Feb-08 23:49 
AnswerRe: Get Client Request Ip Pin
Rajkumar R25-Feb-08 3:16
Rajkumar R25-Feb-08 3:16 
QuestionDefine tree item map ( stl ) ... What wrong with my code ? Pin
Yanshof24-Feb-08 21:57
Yanshof24-Feb-08 21:57 
AnswerRe: Define tree item map ( stl ) ... What wrong with my code ? Pin
Christian Graus24-Feb-08 22:03
protectorChristian Graus24-Feb-08 22:03 
GeneralRe: Define tree item map ( stl ) ... What wrong with my code ? Pin
Yanshof24-Feb-08 22:07
Yanshof24-Feb-08 22:07 
QuestionRe: Define tree item map ( stl ) ... What wrong with my code ? Pin
Rajkumar R24-Feb-08 22:56
Rajkumar R24-Feb-08 22:56 
GeneralRe: Define tree item map ( stl ) ... What wrong with my code ? Pin
Cedric Moonen24-Feb-08 22:59
Cedric Moonen24-Feb-08 22:59 
Questionalpha channel problem Pin
trioum24-Feb-08 20:14
trioum24-Feb-08 20:14 
GeneralRe: alpha channel problem Pin
Mark Salsbery24-Feb-08 20:42
Mark Salsbery24-Feb-08 20:42 
GeneralRe: alpha channel problem Pin
trioum24-Feb-08 20:55
trioum24-Feb-08 20:55 
GeneralRe: alpha channel problem Pin
Mark Salsbery24-Feb-08 21:12
Mark Salsbery24-Feb-08 21:12 
QuestionRe: alpha channel problem Pin
trioum24-Feb-08 22:34
trioum24-Feb-08 22:34 
GeneralRe: alpha channel problem Pin
Mark Salsbery25-Feb-08 5:36
Mark Salsbery25-Feb-08 5:36 
GeneralRe: alpha channel problem Pin
Chris Losinger25-Feb-08 4:06
professionalChris Losinger25-Feb-08 4:06 
GeneralRe: alpha channel problem Pin
Mark Salsbery25-Feb-08 5:30
Mark Salsbery25-Feb-08 5:30 

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.