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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Other Discussions
  3. IT & Infrastructure
  4. Resource "Injection"

Resource "Injection"

Scheduled Pinned Locked Moved IT & Infrastructure
learningjavaquestion
3 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.
  • C Offline
    C Offline
    CompMan44
    wrote on last edited by
    #1

    Is there a way to programmatically "inject" resources into a program without recompiling from the source? In particular I have a pre-compiled program without an appicon, and I want to allow an end-user to supply his or her own appicon, such as in self-extracting archives.

    A little learning is a dangerous thing; Drink deep, or taste not, the Pierian Spring. —Alexander Pope

    M 1 Reply Last reply
    0
    • C CompMan44

      Is there a way to programmatically "inject" resources into a program without recompiling from the source? In particular I have a pre-compiled program without an appicon, and I want to allow an end-user to supply his or her own appicon, such as in self-extracting archives.

      A little learning is a dangerous thing; Drink deep, or taste not, the Pierian Spring. —Alexander Pope

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      You can use BeginUpdateResource() and the related APIs to edit resources in a PE.

      --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Ford, what's this fish doing in my ear?

      C 1 Reply Last reply
      0
      • M Michael Dunn

        You can use BeginUpdateResource() and the related APIs to edit resources in a PE.

        --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Ford, what's this fish doing in my ear?

        C Offline
        C Offline
        CompMan44
        wrote on last edited by
        #3

        That looks like just what I need. Thanks! :)

        A little learning is a dangerous thing; Drink deep, or taste not, the Pierian Spring. —Alexander Pope

        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