|
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
|
|
|
|
|
What are you trying to achieve by doing this? ...I don't remember having to edit this file directly ever, you should be able to make any changes regarding project files and compilation changes from the IDE.
|
|
|
|
|
different mode needs different rc file
|
|
|
|
|
I can see that... but why do you need a different resource for debug and release?
|
|
|
|