FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Expecting BEGIN into .RC file
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
Expecting BEGIN into .RC file
Posted: Mon Oct 13, 2008 07:34 PM
What is this?

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
Posts: 1076
Joined: Fri Oct 07, 2005 10:41 PM
Re: Expecting BEGIN into .RC file
Posted: Mon Oct 13, 2008 07:41 PM
JC wrote:What is this?

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
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
Re: Expecting BEGIN into .RC file
Posted: Mon Oct 13, 2008 07:45 PM
wmormar wrote:
JC wrote:What is this?

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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Expecting BEGIN into .RC file
Posted: Mon Oct 13, 2008 07:47 PM

JĂșlio,

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
Expecting BEGIN into .RC file
Posted: Mon Oct 13, 2008 07: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

// 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
}
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
Posts: 1076
Joined: Fri Oct 07, 2005 10:41 PM
Expecting BEGIN into .RC file
Posted: Mon Oct 13, 2008 07:57 PM
Julio,

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

// 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
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Expecting BEGIN into .RC file
Posted: Mon Oct 13, 2008 08: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
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
Re: Expecting BEGIN into .RC file
Posted: Mon Oct 13, 2008 08: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
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Expecting BEGIN into .RC file
Posted: Mon Oct 13, 2008 08: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
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Expecting BEGIN into .RC file
Posted: Mon Oct 13, 2008 09:24 PM
Unfortunately I've not found a perfect replacement for BRW yet.

EMG


Me neither :-)

Rick Lipkin
Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
Expecting BEGIN into .RC file
Posted: Tue Oct 14, 2008 07: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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Expecting BEGIN into .RC file
Posted: Tue Oct 14, 2008 07:40 AM

I agree with Stefan :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
Expecting BEGIN into .RC file
Posted: 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
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
Expecting BEGIN into .RC file
Posted: 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:

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
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
Expecting BEGIN into .RC file
Posted: Tue Oct 14, 2008 01:55 PM
Via DOS, with -r parameter for verbose:

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