Expecting BEGIN into .RC file

Expecting BEGIN into .RC file

Postby JC » Mon Oct 13, 2008 7:34 pm

What is this?

Code: Select all  Expand view
H:\BCC55\Bin\brc32.exe -r -fo"C:\RepositorioLocal\sqlGenesis\obj\Cadastros.res" -i"H:\xHarbour\include;H:\FWH\include;H:\BCC55\include;C:\RepositorioLocal\sqlGenesis\include;" "C:\RepositorioLocal\sqlGenesis\resources\Cadastros.rc"
Borland Resource Compiler  Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation.  All rights reserved.
Error Cadastros.rc 12 31: Expecting BEGIN
Peace and lighting!

Júlio César M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
User avatar
JC
 
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil

Re: Expecting BEGIN into .RC file

Postby wmormar » Mon Oct 13, 2008 7:41 pm

JC wrote:What is this?

Code: Select all  Expand view
H:\BCC55\Bin\brc32.exe -r -fo"C:\RepositorioLocal\sqlGenesis\obj\Cadastros.res" -i"H:\xHarbour\include;H:\FWH\include;H:\BCC55\include;C:\RepositorioLocal\sqlGenesis\include;" "C:\RepositorioLocal\sqlGenesis\resources\Cadastros.rc"
Borland Resource Compiler  Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation.  All rights reserved.
Error Cadastros.rc 12 31: Expecting BEGIN


The file is corrupt
William, Morales
Saludos

méxico.sureste
User avatar
wmormar
 
Posts: 1074
Joined: Fri Oct 07, 2005 10:41 pm
Location: México

Re: Expecting BEGIN into .RC file

Postby JC » Mon Oct 13, 2008 7:45 pm

wmormar wrote:
JC wrote:What is this?

Code: Select all  Expand view
H:\BCC55\Bin\brc32.exe -r -fo"C:\RepositorioLocal\sqlGenesis\obj\Cadastros.res" -i"H:\xHarbour\include;H:\FWH\include;H:\BCC55\include;C:\RepositorioLocal\sqlGenesis\include;" "C:\RepositorioLocal\sqlGenesis\resources\Cadastros.rc"
Borland Resource Compiler  Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation.  All rights reserved.
Error Cadastros.rc 12 31: Expecting BEGIN


The file is corrupt


But, I can open this file normally with Pelles C!
Peace and lighting!

Júlio César M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
User avatar
JC
 
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil

Postby Antonio Linares » Mon Oct 13, 2008 7:47 pm

Júlio,

Please post a portion of it here, so we can review it
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby JC » Mon Oct 13, 2008 7:50 pm

Antonio Linares wrote:Júlio,

Please post a portion of it here, so we can review it


Antonio, I have change the main.dll for main.rc and this error occurs!
The error is at line 12 -> FONT 8, "MS Shell Dlg", 0, 0, 1

Code: Select all  Expand view
// RESOURCE SCRIPT generated by "Pelles C for Windows, version 5.00".

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

LANGUAGE LANG_PORTUGUESE,SUBLANG_PORTUGUESE_BRAZILIAN

CAD_USUCAD_SELECAO_EMPRESA DIALOGEX FIXED IMPURE 6, 18, 439, 191
STYLE WS_POPUP|DS_MODALFRAME|DS_3DLOOK|DS_CENTER|WS_CAPTION|WS_SYSMENU|WS_VISIBLE
CAPTION "Acesso ao Sistema"
FONT 8, "MS Shell Dlg", 0, 0, 1
{
  CONTROL "&Ok", 4003, "Button", WS_TABSTOP, 304, 173, 65, 15
  CONTROL "&Cancelar", 4004, "Button", WS_TABSTOP, 369, 173, 65, 15
  CONTROL "", 100, "Static", SS_BITMAP|SS_CENTERIMAGE, 0, 0, 83, 191
  CONTROL "Seleção de Empresas", 101, "Static", WS_GROUP, 90, 12, 309, 24
  CONTROL "", 4002, "TxBrowse", WS_TABSTOP|0x00a00103, 90, 47, 344, 123
}


Last edited by JC on Mon Oct 13, 2008 7:58 pm, edited 1 time in total.
Peace and lighting!

Júlio César M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
User avatar
JC
 
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil

Postby wmormar » Mon Oct 13, 2008 7:57 pm

Julio,

solo comenta el segundo y tercer include, por lo menos con pellesc no marca error.

Code: Select all  Expand view
// RESOURCE SCRIPT generated by "Pelles C for Windows, version 5.00".

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

LANGUAGE LANG_PORTUGUESE,SUBLANG_PORTUGUESE_BRAZILIAN

CAD_USUCAD_SELECAO_EMPRESA DIALOGEX FIXED IMPURE 6, 18, 439, 191
STYLE WS_POPUP|DS_MODALFRAME|DS_3DLOOK|DS_CENTER|WS_CAPTION|WS_SYSMENU|WS_VISIBLE
CAPTION "Acesso ao Sistema"
FONT 8, "MS Sans Serif", 0, 0, 1
{
  CONTROL "&Ok", 4003, "Button", WS_TABSTOP, 304, 173, 65, 15
  CONTROL "&Cancelar", 4004, "Button", WS_TABSTOP, 369, 173, 65, 15
  CONTROL "", 100, "Static", SS_BITMAP|SS_CENTERIMAGE, 0, 0, 83, 191
  CONTROL "Seleção de Empresas", 101, "Static", WS_GROUP, 90, 12, 309, 24
  CONTROL "", 4002, "TxBrowse", WS_TABSTOP|0x00a00103, 90, 47, 344, 123
}
William, Morales
Saludos

méxico.sureste
User avatar
wmormar
 
Posts: 1074
Joined: Fri Oct 07, 2005 10:41 pm
Location: México

Re: Expecting BEGIN into .RC file

Postby Enrico Maria Giordano » Mon Oct 13, 2008 8:17 pm

JC wrote:But, I can open this file normally with Pelles C!


It seems that the RC format produced by PellesC resource editor is not compatible with what BRC expects.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Expecting BEGIN into .RC file

Postby JC » Mon Oct 13, 2008 8:18 pm

Enrico Maria Giordano wrote:
JC wrote:But, I can open this file normally with Pelles C!


It seems that the RC format produced by PellesC resource editor is not compatible with what BRC expects.

EMG


Enrico, it's semms! How is the best resource editor for this situation?
Peace and lighting!

Júlio César M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
User avatar
JC
 
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil

Re: Expecting BEGIN into .RC file

Postby Enrico Maria Giordano » Mon Oct 13, 2008 8:27 pm

JC wrote:Enrico, it's semms! How is the best resource editor for this situation?


Unfortunately I've not found a perfect replacement for BRW yet.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Rick Lipkin » Mon Oct 13, 2008 9:24 pm

Unfortunately I've not found a perfect replacement for BRW yet.

EMG


Me neither :(

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

Postby StefanHaupt » Tue Oct 14, 2008 7:37 am

Julio,

JC wrote:The error is at line 12 -> FONT 8, "MS Shell Dlg", 0, 0, 1


the definition of fonts in PellesC is different from that what brc wants, you have to remove ,0,0,1 from every line where a font is defined.
But you have to do this only 1 time,later editing the .rc with PellesC does not change these lines again.
kind regards
Stefan
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Postby Antonio Linares » Tue Oct 14, 2008 7:40 am

I agree with Stefan :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby JC » Tue Oct 14, 2008 12:03 pm

Antonio Linares wrote:I agree with Stefan :-)


Stefan and Antonio, I think about this and try it! But, Pelles reallocate the 3 parameters at end of line again! :(
Peace and lighting!

Júlio César M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
User avatar
JC
 
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil

Postby JC » Tue Oct 14, 2008 12:39 pm

Only for testing the source... I removed the end of FONT lines and compile my sources.

The .rc passed fine, but another error occurs:

Code: Select all  Expand view
ILINK32 @B32.BC
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Fatal: Access violation.  Link terminated.
Peace and lighting!

Júlio César M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
User avatar
JC
 
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil

Postby JC » Tue Oct 14, 2008 1:55 pm

Via DOS, with -r parameter for verbose:

Code: Select all  Expand view
C:\RepositorioLocal>ilink32 -r @b32.bc
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
RLINK32 Version 4.00  (c) Copyright 1992-1999 Borland International.
Input resource file #1: "TMP7.$$$"
Input resource file #2: "C:\REPOSITORIOLOCAL\OBJ\IMAGENS.RES"
Input resource file #3: "C:\REPOSITORIOLOCAL\OBJ\VISUALXP.RES"
Input resource file #4: "C:\REPOSITORIOLOCAL\RESOURCES\CADASTROS.RES"
Input resource file #5: "C:\REPOSITORIOLOCAL\RESOURCES\SISTEMA.RES"
Reading resource files.
Fatal: Access violation.  Link terminated.
Peace and lighting!

Júlio César M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
User avatar
JC
 
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 56 guests