Jose
.rc files are nothing more than text files .. Many years ago I decided to work only with .rc files to build my forms. I came up with a windows batch file to combine all ..rc files into a single monolithic .rc which I then compile into .res.
This is a variant if the rc2dll32.dll.bat file :
@Echo Off
DEL LeaveW32.RC
DEL LeaveW32.RES
COPY *.RC LeaveW32.RC
C:\BORLAND\BCC74\BIN\brcc32 -iC:\BORLAND\BCC74\include -v -iC:\BORLAND\BCC74\include\dinkumware -iC:\BORLAND\BCC74\include\windows\sdk LeaveW32.Rc >Rick.Txt
del *.iL?
del *.map
del *.obj
del *.~rc
del *.rws
:del *.res
del *.tds
echo done!
In case something happens during the .rc compile .. I send the output >Rick.txt. When this batch file is complete two files are created
Leavw32.rc ( monolithic file that has all my .rc's copied into one file) and Leavw32.Res
The .res file gets linked into the application... The reason I do it this way is I had a huge .rc file that I kept working with .. adding new forms all the time. Somewhere along the line my single ( working ) .rc got corrupt and I had to try to debug a huge file ..
I decided to build all my single forms into .rc and then copy them all together during the final compile .. I found the above script so much easier to work with as it re-builds the single monolithic .rc file each time I build the project.
Hope that makes sense.
Rick Lipkin