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 / C++ / MFC
  4. Replacing Resource Table

Replacing Resource Table

Scheduled Pinned Locked Moved C / C++ / MFC
tutoriallearning
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.
  • S Offline
    S Offline
    Sameer Maggon
    wrote on last edited by
    #1

    Hi, I know we can modify a resource using updateresource function... but its like i have a string in CString and i want to copy that to a resource table entry... Does anyone know how to do that Sameer

    M 1 Reply Last reply
    0
    • S Sameer Maggon

      Hi, I know we can modify a resource using updateresource function... but its like i have a string in CString and i want to copy that to a resource table entry... Does anyone know how to do that Sameer

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

      String resources are weird. Strings are stored in blocks of 16. IDs 0-15 are block 0, 16-31 are block 1, etc. So block# == ID >> 4. Use the block # to load the resource (with Find/Load/LockResource APIs). Once you get the block loaded, the format of the block should be obvious (Unicode strings, length-prefixed). --Mike-- Just released - RightClick-Encrypt - Adds fast & easy file encryption to Explorer Like the Google toolbar? Then check out UltraBar, with more features & customizable search engines! My really out-of-date homepage Sonork-100.19012 Acid_Helm

      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