Embedding a manifest file

  • Thread starter Thread starter Merak
  • Start date Start date
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?
 
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.
 
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.
 
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.
 
Back
Top