Manifest thyself!
-
How can I get my program's manifest file as a resource? The docs only vaguely mention it, but I can't seem to figure it out. Perhaps its simply my inferior software; I only have the freeware SharpDevelop to work with, and whenever I add it as a resource the standard way it gives me it as a System.Byte[]. I need the manifest primarily for the XP styles it provides. But needless to say, having to drag around this extra file isn't very convenient.
-Domenic Denicola- [CPUA 0x1337] MadHamster Creations "I was born human. But this was an accident of fate - a condition merely of time and place. I believe it's something we have the power to change..."
-
How can I get my program's manifest file as a resource? The docs only vaguely mention it, but I can't seem to figure it out. Perhaps its simply my inferior software; I only have the freeware SharpDevelop to work with, and whenever I add it as a resource the standard way it gives me it as a System.Byte[]. I need the manifest primarily for the XP styles it provides. But needless to say, having to drag around this extra file isn't very convenient.
-Domenic Denicola- [CPUA 0x1337] MadHamster Creations "I was born human. But this was an accident of fate - a condition merely of time and place. I believe it's something we have the power to change..."
From what I've seen, the embedded-resource manifest needs to be stored as a standard Win32 resource - not a .NET assembly resource. If you've got VS5/6/.NET, you can open up your application's exe and add it manually. From what I remember, it needs to be added as a custom resource type called "RT_MANIFEST" with ID = 1. Check www.gotdotnet.com for more specifics (search for Manifest) Unfortunately, there doesn't seem to be a quick way to get the C# compiler to emit standard Win32 resources. The other option, as you have already figured out, is to carry around the .manifest file with your exe. -- Russell Morris "WOW! Chocolate - half price!" - Homer Simpson, while in the land of chocolate.