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. Environment macro

Environment macro

Scheduled Pinned Locked Moved C / C++ / MFC
loungeworkspace
4 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.
  • R Offline
    R Offline
    Rome Singh
    wrote on last edited by
    #1

    I would like to put the output of one of my projects in the SYSTEM32 directory but I can't find the macro to use. I'm trying to set it in the Project->Properties->General->Output Directory. I'm looking for something similiar to $(OutDir), $(TargetDir)... Thanks in advance, RS

    A 1 Reply Last reply
    0
    • R Rome Singh

      I would like to put the output of one of my projects in the SYSTEM32 directory but I can't find the macro to use. I'm trying to set it in the Project->Properties->General->Output Directory. I'm looking for something similiar to $(OutDir), $(TargetDir)... Thanks in advance, RS

      A Offline
      A Offline
      Andrew Walker
      wrote on last edited by
      #2

      You can use all of the visual studio pre-defined macros, or you can use standard environment variables. This works on my win2k box $(SYSTEMROOT)\system32


      If you can keep you head when all about you Are losing theirs and blaming it on you; If you can dream - and not make dreams your master; If you can think - and not make thoughts you aim; Yours is the Earth and everything that's in it. Rudyard Kipling

      R 1 Reply Last reply
      0
      • A Andrew Walker

        You can use all of the visual studio pre-defined macros, or you can use standard environment variables. This works on my win2k box $(SYSTEMROOT)\system32


        If you can keep you head when all about you Are losing theirs and blaming it on you; If you can dream - and not make dreams your master; If you can think - and not make thoughts you aim; Yours is the Earth and everything that's in it. Rudyard Kipling

        R Offline
        R Offline
        Rome Singh
        wrote on last edited by
        #3

        Thanks Andrew that works fine on my win2k machine as well. I'll have to test it out on XP. In you signature you have "If you can think - and not make thoughts you aim;" Should it be "thoughts YOUR aim"? Thanks again... RS

        A 1 Reply Last reply
        0
        • R Rome Singh

          Thanks Andrew that works fine on my win2k machine as well. I'll have to test it out on XP. In you signature you have "If you can think - and not make thoughts you aim;" Should it be "thoughts YOUR aim"? Thanks again... RS

          A Offline
          A Offline
          Andrew Walker
          wrote on last edited by
          #4

          Rome Singh wrote: Should it be "thoughts YOUR aim"? :-O and it's been like that for almost 18 months, :-O


          If you can keep you head when all about you Are losing theirs and blaming it on you; If you can dream - and not make dreams your master; If you can think - and not make thoughts your aim; Yours is the Earth and everything that's in it. Rudyard Kipling

          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