How to modify manifest file in codeblocks+mingw+wxWidgets and xp

633 views
Skip to first unread message

simon zhang

unread,
Jan 6, 2013, 9:16:17 PM1/6/13
to wx-u...@googlegroups.com
I want to make the custom manifest file.I must delete the parameter "publicKeyToken" in manifest file,so that the program call some local DLLs. But I do not know how to add the files in it,so that the file can be linked to the program.I am a novice in codeblocks+mingw.

Environment:
os: winxp,
ide: codeblocks12.11,
compiler: mingw that come from codeblocks installation package.
GUI:wxWidgets2.8

I must modify this parameter "publicKeyToken" in the manifest file as the following :
<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="X86" publicKeyToken="6595b64144ccf1df" language="*"></assemblyIdentity>

I have make a custom manifest file:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="0.64.1.0" processorArchitecture="x86" name="Controls" type="win32"></assemblyIdentity>
<description>wxWindows application</description>
<dependency>
    <dependentAssembly>
        <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="X86" language="*"></assemblyIdentity>
    </dependentAssembly>
</dependency>
</assembly>


I have created this file in the project directory and wrote in resources file as the following.
1 24 "test.exe.Manifest"

But do a error of "duplicate value".

Kinaou HERVE - MEDAL

unread,
Jan 16, 2013, 5:01:57 AM1/16/13
to wx-u...@googlegroups.com

The modified manifest file cannot be embedded in the DLL. You should compile your DLL without embedding the manifest to force the use of your customized manifest.

A customized manifest file should exist for each DLL/EXE and should have the same name + the manifest extension.

Unfortunately I don’t know how to do with mingw to not embed the manifest, only with VS.

 

KH

 


De : simon zhang [mailto:hap...@gmail.com]
Envoyé : lundi 7 janvier 2013 03:16
À : wx-u...@googlegroups.com
Objet : How to modify manifest file in codeblocks+mingw+wxWidgets and xp

--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
 
To unsubscribe, send email to wx-users+u...@googlegroups.com
or visit http://groups.google.com/group/wx-users

Reply all
Reply to author
Forward
0 new messages