Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: rem on June 09, 2005, 08:35:52 pm
-
How to compile the win32 executable with manifest file, to use winxp themes
-
Ok, I know now. You don't have to answer.
-
Well tell me I don't know how, I'm stioll trying to figure out how.
-
I think it goes Plugins->Windows XP look'n'feel
I did it successfully :) :D
-
But that doesn't put it into the exe. I need it to go inside the exe so I don't need the manifest file to make it look like xp.
-
I don't know how do they do it in wxWidgets :) but in Win32 I did it this way :)
1. Create winxp.manifest file with this code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly
xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<assemblyIdentity
name="Sergei_Novik.Apps.tab"
processorArchitecture="x86"
version="1.0.0.0"
type="win32"/>
<description>tab</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="x86"
publicKeyToken="6595b64144ccf1df"
language="*"/>
</dependentAssembly>
</dependency>
</assembly>
2. Then in resource.rc file add this string:
1 24 "winxp.manifest"
3. Recompile your project
4. After that you can delete your winxp.manifest file, your application will remain with xp style. :)
By the way it isn't good idea insert manifest-file inside exe-file, cause it may bring some compatibility problems I guess.... :))
Cheers!
-
Well it only worked for GCC compiler not for the visual c++ toolkit.
Oh well and I also heard it is better to put the manifest file inside the exe. Weird.
-
Easiest way to have a manifest is to click plugins->Windows XP Look'n Feel. Recompile and you are ready to go. :)