How to use manifest embedded as resource? (Windows XP / Vista Controls)

I have a manifest built in as a Windows resource. But what is the right way to apply it?

More specific:

I have a .manifest file. This is a standard visual-style application control for Windows XP / Vista. When applied, being in the same directory as .exe and appropriately named, it works.

However, this approach is rather cumbersome. I want my .exe to be standalone. Obviously, this can be done, given that many applications on my computer can use a modern style without a separate manifest file.

So, I looked around and finally found the manifest attachment as a resource. So I added this line to my .rc file:

1 RT_MANIFEST "mdiedit.exe.manifest" 

But what should I do next?

Edit:. If this helps you find out, my program is written in D and built using D digital tokens and resource compilers. No IDE. But I expected that any solution that works in C (++) when it is built using command line tools will also work in D.

+4
source share
2 answers

RT_MANIFEST is a definition, so make sure your resource file contains the correct header or just replace RT_MANIFEST with 24

+8
source

Have you added the .rc file to your project? Alternatively, use a development environment resource compiler, such as brcc32.exe or rc.exe, to compile the .rc file into a .res file, and then add this file to your project.

0
source

All Articles