FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Looking for the topic : RMK-file with multiple RC-files
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Looking for the topic : RMK-file with multiple RC-files
Posted: Mon Mar 02, 2015 08:30 PM

Hello,

I remember, there was a sample adding multiple RC-files to a RMK-file
I searched, but couldn't find
I think INCLUDE has been used.

who knows this toppic ?

best regards
Uwe :?:

Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM
Re: Looking for the topic : RMK-file with multiple RC-files
Posted: Mon Mar 02, 2015 08:55 PM
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Looking for the topic : RMK-file with multiple RC-files
Posted: Mon Mar 02, 2015 09:49 PM

Thank You very much,

I tested from this topic, but the RC-files are not included. :(
Because it will be a large appl. with many resources, I have to split them.
The old release, I used DLL's. Now I want to convert to RC-files
I still remember another solution, merging the RC-files.

I have to add :

PFLEGE_0.rc
PFLEGE_1.rc
PFLEGE_2.rc
PFLEGE_3.rc
PFLEGE_4.rc

to be included in PFLEGEPL.exe

Tested ( just the beginning ) :
The PRG's

PRG = \
PFLEGEPL.PRG \ => uses PFLEGE_0.res
NETWORK.PRG \
COLORS.PRG => uses PFLEGE_1.res
...
...
IF EXIST PFLEGE_0.res echo PFLEGE_0.res + >> b32.bc
$(BCDIR)\bin\ilink32 -Gn -aa -Tpe -s @b32.bc

IF EXIST PFLEGE_1.res echo PFLEGE_1.res >> b32.bc
$(BCDIR)\bin\ilink32 -Gn -aa -Tpe -s @b32.bc

what happens at the bottom ?

PFLEGE_0.res : PFLEGE_0.rc
$(BCDIR)\bin\brc32.exe -r PFLEGE_0.rc

best regards
Uwe :?:

Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Looking for the topic : RMK-file with multiple RC-files
Posted: Wed Mar 04, 2015 12:55 PM
I found the topic but it is not working.
COMMANDLINE - error !!!
Any working sample ?

The main-rc = PFLEGE_0
to be included
PFLEGE_1,PFLEGE_2 and PFLEGE_3 ==> creating the RES-file PFLEGE_0.res

# viewtopic.php?f=3&t=23117&p=124075&hilit=%26include+rmk#p124075

best regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM
Re: Looking for the topic : RMK-file with multiple RC-files
Posted: Wed Mar 04, 2015 02:39 PM
// GO.BAT

Code (fw): Select all Collapse
if not exist obj md obj
c:\bcc582\bin\MAKE -ftest.mak


João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM
Re: Looking for the topic : RMK-file with multiple RC-files
Posted: Wed Mar 04, 2015 03:30 PM
//TEST.MAK

Code (fw): Select all Collapse
#Borland make sample, (c) FiveTech Software 2005-2014

HDIRL=c:\XHB280714
BCDIR=c:\BCC582
FWDIR=c:\FWH1306
 
#change these paths as needed
.path.OBJ = .\obj
.path.PRG = .\
.path.CH  = $(FWDIR)\include;$(HDIRL)\include
.path.C   = .\
.path.rc  = .\
 
#important: Use Uppercase for filenames extensions, in the next two rules!
 
PRG =        \
TUTOR04.PRG  \
SEGUNDO.PRG

# Comentario
#REM ONE.PRG   \
#REM TWO.PRG   \
#REM THREE.PRG
 
C =          \
TUTOR04.C    \
SEGUNDO.C
 
PROJECT    : TUTOR04.exe
 
TUTOR04.exe : $(PRG:.PRG=.OBJ)
   echo off
   echo $(BCDIR)\lib\c0w32.obj         +  > b32.bc
   echo OBJ\TUTOR04.obj                + >> b32.bc
   Echo OBJ\SEGUNDO.obj,               + >> b32.bc
   echo TUTOR04.exe,                   + >> b32.bc
   echo TUTOR04.map,                   + >> b32.bc
   echo $(FWDIR)\lib\FiveHx.lib        + >> b32.bc
   echo $(FWDIR)\lib\FiveHC.lib        + >> b32.bc
   echo C:\XHB280714\lib\rtl.lib       + >> b32.bc
   echo C:\XHB280714\lib\vm.lib        + >> b32.bc
   echo C:\XHB280714\lib\gtgui.lib     + >> b32.bc
   echo C:\XHB280714\lib\lang.lib      + >> b32.bc
   echo C:\XHB280714\lib\codepage.lib  + >> b32.bc
   echo C:\XHB280714\lib\macro.lib     + >> b32.bc
   echo C:\XHB280714\lib\rdd.lib       + >> b32.bc
   echo C:\XHB280714\lib\dbfntx.lib    + >> b32.bc
   echo C:\XHB280714\lib\dbfcdx.lib    + >> b32.bc
   echo C:\XHB280714\lib\dbffpt.lib    + >> b32.bc
   echo C:\XHB280714\lib\hbsix.lib     + >> b32.bc
   echo C:\XHB280714\lib\debug.lib     + >> b32.bc
   echo C:\XHB280714\lib\common.lib    + >> b32.bc
   echo C:\XHB280714\lib\pp.lib        + >> b32.bc
   echo C:\XHB280714\lib\pcrepos.lib   + >> b32.bc
   echo C:\XHB280714\lib\ct.lib        + >> b32.bc
   echo C:\XHB280714\lib\zlib.lib      + >> b32.bc
   echo C:\XHB280714\lib\hbzip.lib     + >> b32.bc
   echo C:\XHB280714\lib\libmisc.lib   + >> b32.bc
   echo C:\XHB280714\lib\tip.lib       + >> b32.bc
   echo C:\XHB280714\lib\png.lib       + >> b32.bc
 
   echo $(BCDIR)\lib\cw32.lib          + >> b32.bc
   echo $(BCDIR)\lib\import32.lib      + >> b32.bc
   echo $(BCDIR)\lib\psdk\odbc32.lib   + >> b32.bc
   echo $(BCDIR)\lib\psdk\nddeapi.lib  + >> b32.bc
   echo $(BCDIR)\lib\psdk\iphlpapi.lib + >> b32.bc
   echo $(BCDIR)\lib\psdk\msimg32.lib  + >> b32.bc
   echo $(BCDIR)\lib\psdk\psapi.lib    + >> b32.bc
   echo $(BCDIR)\lib\psdk\rasapi32.lib,  >> b32.bc
 
   IF EXIST TUTOR04.res  echo TUTOR04.res + >> b32.bc
      $(BCDIR)\bin\ilink32 -Gn -aa -Tpe -s @b32.bc

   IF EXIST TUTOR05.res echo TUTOR05.res >> b32.bc
      $(BCDIR)\bin\ilink32 -Gn -aa -Tpe -s @b32.bc
 
#   del b32.bc
 
.PRG.OBJ:
  $(HDIRL)\bin\harbour $< /L /N /W /Oobj\ /I$(FWDIR)\include;$(HDIRL)\include
  $(BCDIR)\bin\bcc32 -c -tWM -I$(HDIRL)\include -oobj\$& obj\$&.c
 
.C.OBJ:
  echo -c -tWM -D__HARBOUR__ -DHB_API_MACROS > tmp
  echo -I$(HDIRL)\include;$(FWDIR)\include >> tmp
  $(BCDIR)\bin\bcc32 -oobj\$& @tmp $&.c
 
  del tmp
 
TUTOR04.res : TUTOR04.rc
  $(BCDIR)\bin\brc32.exe -r TUTOR04.rc

TUTOR05.res : TUTOR05.rc
  $(BCDIR)\bin\brc32.exe -r TUTOR05.rc


João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM
Re: Looking for the topic : RMK-file with multiple RC-files
Posted: Wed Mar 04, 2015 03:35 PM
// B32.BC

Code (fw): Select all Collapse
c:\BCC582\lib\c0w32.obj + 
OBJ\TUTOR04.obj + 
OBJ\SEGUNDO.obj, + 
TUTOR04.exe, + 
TUTOR04.map, + 
c:\FWH1306\lib\FiveHx.lib + 
c:\FWH1306\lib\FiveHC.lib + 
C:\XHB280714\lib\rtl.lib + 
C:\XHB280714\lib\vm.lib + 
C:\XHB280714\lib\gtgui.lib + 
C:\XHB280714\lib\lang.lib + 
C:\XHB280714\lib\codepage.lib + 
C:\XHB280714\lib\macro.lib + 
C:\XHB280714\lib\rdd.lib + 
C:\XHB280714\lib\dbfntx.lib + 
C:\XHB280714\lib\dbfcdx.lib + 
C:\XHB280714\lib\dbffpt.lib + 
C:\XHB280714\lib\hbsix.lib + 
C:\XHB280714\lib\debug.lib + 
C:\XHB280714\lib\common.lib + 
C:\XHB280714\lib\pp.lib + 
C:\XHB280714\lib\pcrepos.lib + 
C:\XHB280714\lib\ct.lib + 
C:\XHB280714\lib\zlib.lib + 
C:\XHB280714\lib\hbzip.lib + 
C:\XHB280714\lib\libmisc.lib + 
C:\XHB280714\lib\tip.lib + 
C:\XHB280714\lib\png.lib + 
c:\BCC582\lib\cw32.lib + 
c:\BCC582\lib\import32.lib + 
c:\BCC582\lib\psdk\odbc32.lib + 
c:\BCC582\lib\psdk\nddeapi.lib + 
c:\BCC582\lib\psdk\iphlpapi.lib + 
c:\BCC582\lib\psdk\msimg32.lib + 
c:\BCC582\lib\psdk\psapi.lib + 
c:\BCC582\lib\psdk\rasapi32.lib, 
TUTOR04.res + 
TUTOR05.res


Regards.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341

Continue the discussion