Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Manifest thyself!

Manifest thyself!

Scheduled Pinned Locked Moved C#
questionwpfcomlearning
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Domenic Denicola
    wrote on last edited by
    #1

    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..."

    R 1 Reply Last reply
    0
    • D Domenic Denicola

      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..."

      R Offline
      R Offline
      Russell Morris
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups