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. ATL / WTL / STL
  4. How To Use Macro In dsp file(VC6.0 *.dsp file)

How To Use Macro In dsp file(VC6.0 *.dsp file)

Scheduled Pinned Locked Moved ATL / WTL / STL
visual-studiodebuggingtutorialannouncementlearning
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.
  • Y Offline
    Y Offline
    yingkou
    wrote on last edited by
    #1

    I want to use macro in .dsp file for load different file to workspace,just as below: 123 is a sub-folder of 04 project folder and there is a 04.rc and resource.h !IF "$(CFG)" == "04 - Win32 Release" RCF=..\\123\\04.rc RCH=..\\123\\Resource.h !ELSEIF "$(CFG)" == "04 - Win32 Debug" RCF=..\\123\\04.rc RCH=..\\123\\Resource.h !ENDIF # Begin Target ... # Begin Source File SOURCE=RCF # End Source File Begin Source File SOURCE=RCH # End Source File # End Target Open workspace by VC6 IDE, RC is not loaded and RCF and RCF are display as a file name in workspace but empty,why?how should I do for doing this work well。 Change macro definition as below,result is same RCF=.\123\04.rc RCH=.\123\Resource.h

    L 1 Reply Last reply
    0
    • Y yingkou

      I want to use macro in .dsp file for load different file to workspace,just as below: 123 is a sub-folder of 04 project folder and there is a 04.rc and resource.h !IF "$(CFG)" == "04 - Win32 Release" RCF=..\\123\\04.rc RCH=..\\123\\Resource.h !ELSEIF "$(CFG)" == "04 - Win32 Debug" RCF=..\\123\\04.rc RCH=..\\123\\Resource.h !ENDIF # Begin Target ... # Begin Source File SOURCE=RCF # End Source File Begin Source File SOURCE=RCH # End Source File # End Target Open workspace by VC6 IDE, RC is not loaded and RCF and RCF are display as a file name in workspace but empty,why?how should I do for doing this work well。 Change macro definition as below,result is same RCF=.\123\04.rc RCH=.\123\Resource.h

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      The results of both parts of your !IF expression are the same. I have not used VC6 for many years, but the later versions need some other function to copy the source file to the project directory. Take a look at how the other files are handled.

      One of these days I'm going to think of a really clever signature.

      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