Favor Ayuda para Compilar con RC

Post Reply
remtec
Posts: 431
Joined: Fri May 12, 2017 2:50 pm

Favor Ayuda para Compilar con RC

Post by remtec »

Amigos

Muy buenas noches.

Tengo el Siguiente problema, estoy compilando un Sistema muy pequeño actualmente lo tengo con Recursos RES de Pelles C, con este recurso todo OK, se genera el EXE sin errores.

El mismo Sistema estoy tratando de usar con Recursos RC, para lo cual con Pelles C, grabe el Recurso como RC, pero al compilarlo me arroja un Error, por lo que no se genera el EXE.

Muchos Saludos.
Antonio.

Este es el resultado de la compilacion con Error:
FWH1507
BCC7
HB32

Code: Select all

C:\Util\Boxpaci>compila

C:\Util\Boxpaci>if not exist obj md obj

C:\Util\Boxpaci>c:\util\bcc7\bin\make -f conpaci.mak
MAKE Version 5.41  Copyright (c) 1987, 2014 Embarcadero Technologies, Inc.
        echo off
        echo c:\util\bcc7\lib\c0w32.obj + > b32.bc
        echo obj\MenuCon.obj obj\Ingreso.obj obj\Consulta.obj , + >> b32.bc
        echo MenuCon.exe, + >> b32.bc
        echo MenuCon.map, + >> b32.bc
        echo c:\util\fwh1507\lib\FiveH.lib c:\util\fwh1507\lib\FiveHC.lib + >> b32.bc
        echo c:\util\hb32\lib\hbwin.lib + >> b32.bc
        echo c:\util\hb32\lib\gtgui.lib + >> b32.bc
        echo c:\util\hb32\lib\hbrtl.lib + >> b32.bc
        echo c:\util\hb32\lib\hbvm.lib + >> b32.bc
        echo c:\util\hb32\lib\hblang.lib + >> b32.bc
        echo c:\util\hb32\lib\hbmacro.lib + >> b32.bc
        echo c:\util\hb32\lib\hbrdd.lib + >> b32.bc
        echo c:\util\hb32\lib\rddntx.lib + >> b32.bc
        echo c:\util\hb32\lib\rddcdx.lib + >> b32.bc
        echo c:\util\hb32\lib\rddfpt.lib + >> b32.bc
        echo c:\util\hb32\lib\hbsix.lib + >> b32.bc
        echo c:\util\hb32\lib\hbdebug.lib + >> b32.bc
        echo c:\util\hb32\lib\hbcommon.lib + >> b32.bc
        echo c:\util\hb32\lib\hbpp.lib + >> b32.bc
        echo c:\util\hb32\lib\hbcpage.lib + >> b32.bc
        echo c:\util\hb32\lib\hbcplr.lib + >> b32.bc
        echo c:\util\hb32\lib\hbct.lib + >> b32.bc
        echo c:\util\hb32\lib\hbpcre.lib + >> b32.bc
        echo c:\util\hb32\lib\xhb.lib + >> b32.bc
        echo c:\util\hb32\lib\hbziparc.lib + >> b32.bc
        echo c:\util\hb32\lib\hbmzip.lib + >> b32.bc
        echo c:\util\hb32\lib\hbzlib.lib + >> b32.bc
        echo c:\util\hb32\lib\minizip.lib + >> b32.bc
        echo c:\util\hb32\lib\png.lib + >> b32.bc
        echo c:\util\hb32\lib\hbusrrdd.lib + >> b32.bc
        rem Uncomment these two lines to use Advantage RDD
        rem echo c:\util\hb32\rddads.lib + >> b32.bc
        rem echo c:\util\hb32\Ace32.lib + >> b32.bc
        echo c:\util\bcc7\lib\cw32.lib + >> b32.bc
        echo c:\util\bcc7\lib\uuid.lib + >> b32.bc
        echo c:\util\bcc7\lib\import32.lib + >> b32.bc
        echo c:\util\bcc7\lib\ws2_32.lib + >> b32.bc
        echo c:\util\bcc7\lib\psdk\odbc32.lib + >> b32.bc
        echo c:\util\bcc7\lib\psdk\nddeapi.lib + >> b32.bc
        echo c:\util\bcc7\lib\psdk\iphlpapi.lib + >> b32.bc
        echo c:\util\bcc7\lib\psdk\msimg32.lib + >> b32.bc
        echo c:\util\bcc7\lib\psdk\psapi.lib + >> b32.bc
        echo c:\util\bcc7\lib\psdk\rasapi32.lib + >> b32.bc
        echo c:\util\bcc7\lib\psdk\gdiplus.lib + >> b32.bc
        echo c:\util\bcc7\lib\psdk\shell32.lib,, + >> b32.bc
        echo MenuCon.rc >> b32.bc

        c:\util\bcc7\bin\ilink32 -Gn -aa -Tpe -s -v @b32.bc
Turbo Incremental Link 6.70 Copyright (c) 1997-2014 Embarcadero Technologies, Inc.
Error: RLINK32: Unsupported 16bit resource in file "C:\UTIL\BOXPACI\MENUCON.RC"
Error: Unknown RLINK32 error
Error: Unable to perform link

** error 2 ** deleting MenuCon.exe

 

Archivo Original de Compilacion:

Code: Select all

HBDIR=c:\util\hb32
BCDIR=c:\util\bcc7
FWDIR=c:\util\fwh1507

#change these paths as needed
.path.OBJ = .\obj
.path.PRG = .\
.path.CH  = $(FWDIR)\include;$(HBDIR)\include
.path.C   = .\
.path.rc  = .\

#important: Use Uppercase for filenames extensions, in the next two rules!

PRG =        \
MenuCon.PRG \
Ingreso.PRG \
Consulta.PRG


C =      \
MenuPaci.C \
Ingreso.C \
Consulta.C


PROJECT    : MenuCon.exe

MenuCon.exe  : $(PRG:.PRG=.OBJ) $(C:.C=.OBJ) MenuCon.rc
   echo off
   echo $(BCDIR)\lib\c0w32.obj + > b32.bc
   echo obj\MenuCon.obj obj\Ingreso.obj obj\Consulta.obj , + >> b32.bc
   echo MenuCon.exe, + >> b32.bc
   echo MenuCon.map, + >> b32.bc

   echo $(FWDIR)\lib\FiveH.lib $(FWDIR)\lib\FiveHC.lib + >> b32.bc
   echo $(HBDIR)\lib\hbwin.lib + >> b32.bc
   echo $(HBDIR)\lib\gtgui.lib + >> b32.bc
   echo $(HBDIR)\lib\hbrtl.lib + >> b32.bc
   echo $(HBDIR)\lib\hbvm.lib + >> b32.bc
   echo $(HBDIR)\lib\hblang.lib + >> b32.bc
   echo $(HBDIR)\lib\hbmacro.lib + >> b32.bc
   echo $(HBDIR)\lib\hbrdd.lib + >> b32.bc
   echo $(HBDIR)\lib\rddntx.lib + >> b32.bc
   echo $(HBDIR)\lib\rddcdx.lib + >> b32.bc
   echo $(HBDIR)\lib\rddfpt.lib + >> b32.bc
   echo $(HBDIR)\lib\hbsix.lib + >> b32.bc
   echo $(HBDIR)\lib\hbdebug.lib + >> b32.bc
   echo $(HBDIR)\lib\hbcommon.lib + >> b32.bc
   echo $(HBDIR)\lib\hbpp.lib + >> b32.bc
   echo $(HBDIR)\lib\hbcpage.lib + >> b32.bc
   echo $(HBDIR)\lib\hbcplr.lib + >> b32.bc
   echo $(HBDIR)\lib\hbct.lib + >> b32.bc
   echo $(HBDIR)\lib\hbpcre.lib + >> b32.bc
   echo $(HBDIR)\lib\xhb.lib + >> b32.bc
   echo $(HBDIR)\lib\hbziparc.lib + >> b32.bc
   echo $(HBDIR)\lib\hbmzip.lib + >> b32.bc
   echo $(HBDIR)\lib\hbzlib.lib + >> b32.bc
   echo $(HBDIR)\lib\minizip.lib + >> b32.bc
   echo $(HBDIR)\lib\png.lib + >> b32.bc
   echo $(HBDIR)\lib\hbusrrdd.lib + >> b32.bc

   rem Uncomment these two lines to use Advantage RDD
   rem echo $(HBDIR)\rddads.lib + >> b32.bc
   rem echo $(HBDIR)\Ace32.lib + >> b32.bc


   echo $(BCDIR)\lib\cw32.lib + >> b32.bc
   echo $(BCDIR)\lib\uuid.lib + >> b32.bc
   echo $(BCDIR)\lib\import32.lib + >> b32.bc
   echo $(BCDIR)\lib\ws2_32.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
   echo $(BCDIR)\lib\psdk\gdiplus.lib + >> b32.bc
   echo $(BCDIR)\lib\psdk\shell32.lib,, + >> b32.bc
   echo MenuCon.rc >> b32.bc


   $(BCDIR)\bin\ilink32 -Gn -aa -Tpe -s -v @b32.bc

   del b32.bc
   del .\obj\*.obj
   del .\obj\*.c
   del *.tds
   del *.map

.PRG.OBJ:
  $(HBDIR)\bin\harbour $< /n /gc0 /q /I$(HBDIR)\include;$(FWDIR)\include /w0 /Oobj\$&.c
  $(BCDIR)\bin\bcc32 -O2 -M -c -v -I$(HBDIR)\include -oobj\$& obj\$&.c

.C.OBJ:
  echo -c -tWM -D__HARBOUR__ -DHB_API_MACROS > tmp
  echo -I$(HBDIR)\include;$(FWDIR)\include >> tmp
  $(BCDIR)\bin\bcc32 -oobj\$& @tmp $&.c
  del tmp
 
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Favor Ayuda para Compilar con RC

Post by Antonio Linares »

Copia aqui el contenido de MENUCON.RC, gracias
regards, saludos

Antonio Linares
www.fivetechsoft.com
remtec
Posts: 431
Joined: Fri May 12, 2017 2:50 pm

Re: Favor Ayuda para Compilar con RC

Post by remtec »

Antonio

Muy buenas tardes, muchas gracias por responder.

Adjunto Codigo Archivo RC.

Muchos Saludos.
Antonio

Menucon.RC:

Code: Select all


// RESOURCE SCRIPT generated by "Pelles C for Windows, version 9.00".

#include <windows.h>
#include <commctrl.h>
#include <richedit.h>

LANGUAGE LANG_SPANISH,SUBLANG_SPANISH_CHILE

1002 DIALOG DISCARDABLE -15, 25, 159, 58
STYLE WS_POPUP|DS_MODALFRAME|DS_3DLOOK|WS_CAPTION|WS_SYSMENU|WS_VISIBLE
FONT 14, "Courier New"
{
  CONTROL "Ingrese Fecha :", 101, "Static", WS_BORDER|WS_GROUP, 12, 16, 60, 10
  CONTROL "", 151, "Edit", WS_BORDER|WS_TABSTOP, 88, 16, 38, 12
  CONTROL "", 200, "Button", BS_BITMAP|WS_GROUP|WS_TABSTOP, 12, 40, 56, 14
  CONTROL "", 4001, "Button", BS_BITMAP|WS_GROUP|WS_TABSTOP, 92, 40, 50, 14, WS_EX_TRANSPARENT
}

1004 DIALOGEX DISCARDABLE 6, 18, 358, 258
STYLE WS_POPUP|DS_MODALFRAME|DS_CONTEXTHELP|DS_3DLOOK|DS_CENTER|WS_CAPTION|WS_SYSMENU|WS_VISIBLE
FONT 12, "Courier New", 0, 1, 1
{
  CONTROL "", 104, "ListBox", LBS_SORT|LBS_NOTIFY|WS_VSCROLL|WS_BORDER|WS_TABSTOP, 4, 36, 352, 204
  CONTROL "", 101, "Static", SS_CENTER|WS_BORDER|WS_GROUP, 24, 12, 40, 12
  CONTROL "", 105, "Button", WS_TABSTOP, 212, 240, 50, 16 { 0xC0DE, 0x0001, 0x0008 }
  CONTROL "", 100, "Static", SS_CENTER|WS_GROUP, 28, 0, 192, 12
  CONTROL "", 102, "ComboBox", WS_BORDER|CBS_DROPDOWN|CBS_SORT|WS_VSCROLL|WS_TABSTOP, 72, 12, 160, 60
  CONTROL "", 103, "Button", WS_TABSTOP, 264, 12, 36, 16 { 0xC0DE, 0x0001, 0x0008 }
  CONTROL "", 120, "Static", SS_CENTER|WS_BORDER|WS_GROUP, 4, 240, 84, 12, WS_EX_TRANSPARENT
}

8004 BITMAP "res1.bmp"

1007 DIALOG DISCARDABLE 60, 72, 256, 116
STYLE WS_POPUP|DS_MODALFRAME|DS_3DLOOK|WS_CAPTION|WS_SYSMENU|WS_VISIBLE
CAPTION "User Identification"
FONT 10, "Arial Black"
{
  CONTROL 8022, 601, "Static", SS_BITMAP, 40, 32, 30, 26
  CONTROL "", 110, "Edit", WS_BORDER|WS_TABSTOP, 128, 40, 45, 12
  CONTROL "&CLAVE", -1, "Static", WS_GROUP, 88, 68, 33, 14
  CONTROL "", 120, "Edit", ES_PASSWORD|WS_BORDER|WS_TABSTOP, 128, 68, 45, 12
  CONTROL "&INGRESAR", 604, "Button", BS_DEFPUSHBUTTON|WS_TABSTOP, 108, 92, 37, 15
  CONTROL "&SALIR", 605, "Button", WS_TABSTOP, 164, 92, 37, 15
  CONTROL "&USUARIO", -1, "Static", WS_GROUP, 88, 40, 33, 14
  CONTROL 8023, 600, "Static", SS_BITMAP, 40, 68, 30, 26
  CONTROL "", 603, "Static", SS_CENTER|WS_GROUP, 8, 4, 244, 20
}

LANGUAGE LANG_ENGLISH,SUBLANG_ENGLISH_US

8022 BITMAP "res2.bmp"

LANGUAGE LANG_SPANISH,SUBLANG_SPANISH_CHILE

8023 BITMAP "res3.bmp"

LANGUAGE LANG_ENGLISH,SUBLANG_ENGLISH_US

8001 BITMAP "res4.bmp"

LANGUAGE LANG_SPANISH,SUBLANG_SPANISH_CHILE

8005 BITMAP "res5.bmp"
8006 BITMAP "res6.bmp"
8007 BITMAP "res7.bmp"
8010 BITMAP "res8.bmp"
8009 BITMAP "res9.bmp"


 
User avatar
Rick Lipkin
Posts: 2397
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Favor Ayuda para Compilar con RC

Post by Rick Lipkin »

Remtec



Rem out // #include <richedit.h> .. and try to re-compile ...

Thanks
Rick Lipkin
remtec
Posts: 431
Joined: Fri May 12, 2017 2:50 pm

Re: Favor Ayuda para Compilar con RC

Post by remtec »

Hola Rick Lipkin

Muchas gracias por responder.

He probado tu sugerencia, pero lamentablemente se sigue produciendo el mismo error el compilar.

Saludos
Antonio
nnicanor
Posts: 296
Joined: Fri Apr 23, 2010 4:30 am
Location: Colombia

Re: Favor Ayuda para Compilar con RC

Post by nnicanor »

Hola,

Puede usar el mismo compilador de Recursos de Pelles C, cambia las rutas de acuerdo a tu configuración

Code: Select all


c:\PellesC64\bin\porc.exe -r -fo".\Path\of\YourResource.res" -ic:\PellesC64\Include\Win;c:\PellesC64\Include -D__FLAT__ ".\Path\Of\YourRC.rc"

 
Saludos
Nicanor Martinez M.
Auditoria y Sistemas Ltda.
MicroExpress Ltda.
FW + FWH + XHARBOUR + HARBOUR + PELLES C + XDEVSTUDIO + XEDIT + BCC + VC_X86 + VCC_X64 + MINGW + R&R Reports + FastReport + Tdolphin + ADO + MYSQL + MARIADB + ORACLE
nnicanor@yahoo.com
remtec
Posts: 431
Joined: Fri May 12, 2017 2:50 pm

Re: Favor Ayuda para Compilar con RC

Post by remtec »

nnicanor:
Hola como estas, muchas gracias por tu respuesta.

Lamentablemente emite un error al aplicar tu sugerencia.

Muchos Saludos.

Codigo del Error.

Code: Select all

c:\PellesC\bin\porc.exe -r -fo"c:\util\Boxpaci\Menucon.res" -ic:\PellesC\Include\Win;c:\PellesC\Include -D__FLAT__ "c:\util\Boxpaci\Menucon.rc"
PORC: c:\util\Boxpaci\Menucon.rc(3): fatal error: Can't find include file windows.h.
admsoporte
Posts: 79
Joined: Sun Oct 09, 2005 3:09 pm
Location: Mexico

Re: Favor Ayuda para Compilar con RC

Post by admsoporte »

ya intentaste recompilar cambiando esta linea

Code: Select all

FONT 12, "Courier New", 0, 1, 1
por:
FONT 12, "Courier New"
 
Saludos

Atentamente

Jose F Dominguez Serafin

email admsoporte@gmail.com
nnicanor
Posts: 296
Joined: Fri Apr 23, 2010 4:30 am
Location: Colombia

Re: Favor Ayuda para Compilar con RC

Post by nnicanor »

Hola cambia la línea para que cada path de include esté separado te debe compilar sin problemas ya lo pude compilar pero me faltan los archivos de recursos

Code: Select all


c:\PellesC\bin\porc.exe -r -fo"c:\util\Boxpaci\Menucon.res" -ic:\PellesC\Include\Win -ic:\PellesC\Include -D__FLAT__ "c:\util\Boxpaci\Menucon.rc"
PORC: .\menucon.rc(34): error: File not found: 'res1.bmp'.
PORC: .\menucon.rc(54): error: File not found: 'res2.bmp'.
PORC: .\menucon.rc(58): error: File not found: 'res3.bmp'.
PORC: .\menucon.rc(62): error: File not found: 'res4.bmp'.
PORC: .\menucon.rc(66): error: File not found: 'res5.bmp'.
PORC: .\menucon.rc(67): error: File not found: 'res6.bmp'.
PORC: .\menucon.rc(68): error: File not found: 'res7.bmp'.
PORC: .\menucon.rc(69): error: File not found: 'res8.bmp'.
PORC: .\menucon.rc(70): error: File not found: 'res9.bmp'.

 
Nicanor Martinez M.
Auditoria y Sistemas Ltda.
MicroExpress Ltda.
FW + FWH + XHARBOUR + HARBOUR + PELLES C + XDEVSTUDIO + XEDIT + BCC + VC_X86 + VCC_X64 + MINGW + R&R Reports + FastReport + Tdolphin + ADO + MYSQL + MARIADB + ORACLE
nnicanor@yahoo.com
Post Reply