Embedding a manifest file

M

Merak

I usually embed a XML manifest with my applications to have them support XP
Visual Styles.
I know I can embed the resource into the resources section of the compiled
executable (under the type RT_MANIFEST and with ID=1).
What I want to know is if there's a way to include it in the project before
compilation, like you could do with the old .rc files, and have it compiled
automatically inside the EXE. Is it possibile?
 
M

Mick Doherty

No :-(
However, if you are using VS2003 you can call
Application.EnableVisualStyles, on app initialisation, instead of including
a Manifest resource/file. It is also a common recomendation that you follow
this call with Application.DoEvents.
 
M

Merak

Too bad I'm still with 'ol 2002.
Thanks Mcik.

Mick Doherty said:
No :-(
However, if you are using VS2003 you can call
Application.EnableVisualStyles, on app initialisation, instead of including
a Manifest resource/file. It is also a common recomendation that you follow
this call with Application.DoEvents.
 
M

Mick Doherty

Sorry I couldn't give you the answer you wanted.
You only need to embed the manifest on the release version, so it only needs
to be done once per app.
If you want to see how the app looks with Visual Style during Design you can
apply a Manifest to devenv.exe in your "Common7\IDE" folder.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top