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. Conditional Resources

Conditional Resources

Scheduled Pinned Locked Moved C / C++ / MFC
visual-studiotutoriallearning
3 Posts 3 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.
  • B Offline
    B Offline
    Bo Hunter
    wrote on last edited by
    #1

    I am wondering how to use a different res when compiling two different project configs. I would like to change the comments in the VS_VERSION_INFO resource in a dll project that has A and W versions. I know this sounds petty but I would like to do it. Thank You Bo Hunter

    M 1 Reply Last reply
    0
    • B Bo Hunter

      I am wondering how to use a different res when compiling two different project configs. I would like to change the comments in the VS_VERSION_INFO resource in a dll project that has A and W versions. I know this sounds petty but I would like to do it. Thank You Bo Hunter

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

      In the ResourceView tab, view the properties for a resource. In the prop sheet there's a Condition edit box, so enter a preprocessor symbol there (for example, _DEBUG, or you can make up your own). That turns into a #ifdef _DEBUG (or whatever symbol) in the .rc file. You can change the defined symbols on the Resources tab in the project settings. (Note: this is for VC 6, no idea how it works in 7 but it's probably completely different) ;) --Mike-- Ericahist | CP SearchBar v2.0.2 | Homepage | RightClick-Encrypt | 1ClickPicGrabber If my rhyme was a drug, I'd sell it by the gram.

      A 1 Reply Last reply
      0
      • M Michael Dunn

        In the ResourceView tab, view the properties for a resource. In the prop sheet there's a Condition edit box, so enter a preprocessor symbol there (for example, _DEBUG, or you can make up your own). That turns into a #ifdef _DEBUG (or whatever symbol) in the .rc file. You can change the defined symbols on the Resources tab in the project settings. (Note: this is for VC 6, no idea how it works in 7 but it's probably completely different) ;) --Mike-- Ericahist | CP SearchBar v2.0.2 | Homepage | RightClick-Encrypt | 1ClickPicGrabber If my rhyme was a drug, I'd sell it by the gram.

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        Cool info.

        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