Salvar RC com PELLES´C

Post Reply
MGA
Posts: 1258
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá
Contact:

Salvar RC com PELLES´C

Post by MGA »

Ao abrir o meu arquivo RC (clientes.rc) utilizando o PELLES´C, ao salvar o arquivo aparece estas linhas no topo do arquivo:

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

O problema é que ao compilar com estas linhas me acontece o erro:

[1]:Brc32.Exe -r -foResource\SGR.Res RC\SGR.RC
Borland Resource Compiler Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation. All rights reserved.

Error clientes.rc 3 11: Cannot open file: windows.h

Alguem sabe como resolver ?

:(
Last edited by MGA on Tue Nov 04, 2008 12:24 pm, edited 1 time in total.
ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
User avatar
Daniel Garcia-Gil
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita
Contact:

Post by Daniel Garcia-Gil »

set Traductor-portuges ON
edit o RC e erase aquelas linhas que eu acredito que é suficiente…
our best documentation is the source code
Isla de Margarita Venezuela.
danielgarciagil@gmail.com
http://tdolphin.blogspot.com/
https://www.dropbox.com/referrals/NTI5N ... rc=global9
MGA
Posts: 1258
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá
Contact:

Post by MGA »

mcfox

Obrigado por ter respondido.

Sobre editar o RC e tirar as linhas, eu já venho fazendo isso. Mais como configurar o PELLES´C para que não gere estas linhas mais?

#include <windows.h>
#include <commctrl.h>
#include <richedit.h>
ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
User avatar
Daniel Garcia-Gil
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita
Contact:

Post by Daniel Garcia-Gil »

no lo se :(
our best documentation is the source code
Isla de Margarita Venezuela.
danielgarciagil@gmail.com
http://tdolphin.blogspot.com/
https://www.dropbox.com/referrals/NTI5N ... rc=global9
Carlos Mora
Posts: 989
Joined: Thu Nov 24, 2005 3:01 pm
Location: Madrid, España

Post by Carlos Mora »

SGS,

Con que compilas? Usas un makefile?

en la erramienta que uses reemplaza el brc.exe de borland por el PORC.exe del pelles, y deja el resto igual. Funciona perfecto.

un saludo,

Carlos.
User avatar
jrestojeda
Posts: 601
Joined: Wed Jul 04, 2007 3:51 pm
Location: Buenos Aires - Argentina

Post by jrestojeda »

Otro detalle, debes poner donde estaba el Brc.exe el Porc.exe y la Dll con ese mismo nombre, Porc.dll.
Estos dos archivos se encuentran en el directorio Bin de la instalación del Pellesc.

Espero te sirva.
Saludos, Esteban
Last edited by jrestojeda on Tue Nov 04, 2008 4:15 pm, edited 1 time in total.
MGA
Posts: 1258
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá
Contact:

Post by MGA »

Carlos Mora,

Muito obrigado por ter respondido.

Eu utilizo o xmate:

Fiz como você mandou e acontece estes erros:


xHarbour Compiler build 1.1.0 (SimpLex)
Copyright 1999-2008, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'w:\new\LIB0060.PRG'...
Lines 641, Functions/Procedures 2
Generating C source output to 'Obj\LIB0060.c'...
Done.
[1]:Bcc32.Exe -c -O2 -Ic:\Fwh802\INCLUDE;c:\xharb802\include;w:\new\fivewin;w:\new -Ic:\xharb802\Include;C:\BCC55\Include -nObj Obj\LIB0060.c
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
Obj\LIB0060.c:
[1]:porc.Exe -r -foResource\SGR.Res RC\SGR.RC
PORC: RC\touch.rc(4): error: Unknown keyword: 'LANG_ENGLISH'.
PORC: RC\touch.rc(4): error: Unknown keyword: 'SUBLANG_ENGLISH_US'.
PORC: RC\touch.rc(7): error: BEGIN keyword expected (found: WS_POPUP).
PORC: RC\touch.rc(7): error: Invalid syntax.
PORC: RC\touch.rc(32): error: BEGIN keyword expected (found: WS_POPUP).
PORC: RC\touch.rc(32): error: Invalid syntax.
PORC: RC\touch.rc(44): error: Unknown keyword: 'LANG_PORTUGUESE'.
PORC: RC\touch.rc(44): error: Unknown keyword: 'SUBLANG_PORTUGUESE_BRAZILIAN'.
PORC: RC\touch.rc(47): error: BEGIN keyword expected (found: WS_POPUP).
PORC: RC\touch.rc(47): error: Invalid syntax.
PORC: RC\touch.rc(145): error: BEGIN keyword expected (found: WS_POPUP).
PORC: RC\touch.rc(145): error: Invalid syntax.
PORC: RC\touch.rc(146): fatal error: Feature not implemented.
ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
Carlos Mora
Posts: 989
Joined: Thu Nov 24, 2005 3:01 pm
Location: Madrid, España

Post by Carlos Mora »

Hola SGS

Yo uso un makefile, y en la línea que compila reemplacé brc.exe por

"C:\Program Files\PellesC\Bin\PORC.EXE" $** /I "C:\Program Files\PellesC\include" /I "C:\Program Files\PellesC\include\win"

note los includes a los directorios include de PellesC

Un saludo

Carlos.
MGA
Posts: 1258
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá
Contact:

Post by MGA »

Muito obrigado Carlos. :D
ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
Post Reply