Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: rem on June 09, 2005, 08:35:52 pm

Title: manifest file to use winxp themes
Post by: rem on June 09, 2005, 08:35:52 pm
How to compile the win32 executable with manifest file, to use winxp themes
Title: manifest file to use winxp themes
Post by: Anonymous on June 09, 2005, 08:45:31 pm
Ok, I know now. You don't have to answer.
Title: Re: manifest file to use winxp themes
Post by: Rune Hunter on September 24, 2005, 06:17:22 am
Well tell me I don't know how, I'm stioll trying to figure out how.
Title: Re: manifest file to use winxp themes
Post by: Serge2005 on September 24, 2005, 10:12:47 am
I think it goes Plugins->Windows XP look'n'feel
I did it successfully :)  :D
Title: Re: manifest file to use winxp themes
Post by: Rune Hunter on September 24, 2005, 04:25:04 pm
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.
Title: Re: manifest file to use winxp themes
Post by: Serge2005 on September 24, 2005, 06:25:50 pm
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!
Title: Re: manifest file to use winxp themes
Post by: Rune Hunter on September 24, 2005, 06:33:03 pm
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.
Title: Re: manifest file to use winxp themes
Post by: sethjackson on September 24, 2005, 09:32:18 pm
Easiest way to have a manifest is to click plugins->Windows XP Look'n Feel. Recompile and you are ready to go.  :)