Windows application manifests

Andrej Mitrovic andrej.mitrovich at gmail.com
Tue May 15 11:38:09 PDT 2012


On 5/15/12, Gor Gyolchanyan <gor.f.gyolchanyan at gmail.com> wrote:
> But what do windows resources have to do with the manifests?

You use a resource file to load a manifest into the executable. There
are a couple of examples here:

https://github.com/AndrejMitrovic/DWinProgramming/tree/master/Samples/Extra/VisualStyles
https://github.com/AndrejMitrovic/DWinProgramming/tree/master/Samples/Extra/VisualStyles2
https://github.com/AndrejMitrovic/DWinProgramming/tree/master/Samples/Extra/ThemedSimpleWakeUp
https://github.com/AndrejMitrovic/DWinProgramming/tree/master/Samples/Extra/ThemedWakeUp

enable-theme.xml is the manifest, and resource.rc just references this
xml file. The resource file is compiled into a .res file, and this
file is then passed directly to DMD.

For your own purposes try to just take the .rc/.res/.xml files, pass
.res to dmd when compiling your app and see if the visual styles work
for you.

The last example loads the manifest dynamically, based on a sample
from the DFL library.


More information about the Digitalmars-d mailing list