Error E2029 in CreateResFromRc.Bat
Hi Nico,
When executed "CreateResFromRC.bat" I received error "E2029 (Declaration
expected but end of file found".
Can you help me ?
Samuel
C:\CodeGear\RAD Studio\5.0\RBuilder\Languages>"C:\CodeGear\RAD
Studio\5.0\bin\dc
c32.exe" -r ptb\rbPrint.rc
CodeGear Delphi for Win32 compiler version 18.5
Copyright (c) 1983,2007 CodeGear
ptb\rbPrint.rc(187)
ptb\rbPrint.rc(188) Error: E2029 Declaration expected but end of file found
C:\CodeGear\RAD Studio\5.0\RBuilder\Languages>"C:\CodeGear\RAD
Studio\5.0\bin\dc
c32.exe" -r ptb\rbIDE.rc
CodeGear Delphi for Win32 compiler version 18.5
Copyright (c) 1983,2007 CodeGear
ptb\rbIDE.rc(642)
ptb\rbIDE.rc(643) Error: E2029 Declaration expected but end of file found
C:\CodeGear\RAD Studio\5.0\RBuilder\Languages>"C:\CodeGear\RAD
Studio\5.0\bin\dc
c32.exe" -r ptb\rbDADE.rc
CodeGear Delphi for Win32 compiler version 18.5
Copyright (c) 1983,2007 CodeGear
ptb\rbDADE.rc(160)
ptb\rbDADE.rc(161) Error: E2029 Declaration expected but end of file found
C:\CodeGear\RAD Studio\5.0\RBuilder\Languages>"C:\CodeGear\RAD
Studio\5.0\bin\dc
c32.exe" -r ptb\rbRAP.rc
CodeGear Delphi for Win32 compiler version 18.5
Copyright (c) 1983,2007 CodeGear
ptb\rbRAP.rc(105)
ptb\rbRAP.rc(106) Error: E2029 Declaration expected but end of file found
C:\CodeGear\RAD Studio\5.0\RBuilder\Languages>
When executed "CreateResFromRC.bat" I received error "E2029 (Declaration
expected but end of file found".
Can you help me ?
Samuel
C:\CodeGear\RAD Studio\5.0\RBuilder\Languages>"C:\CodeGear\RAD
Studio\5.0\bin\dc
c32.exe" -r ptb\rbPrint.rc
CodeGear Delphi for Win32 compiler version 18.5
Copyright (c) 1983,2007 CodeGear
ptb\rbPrint.rc(187)
ptb\rbPrint.rc(188) Error: E2029 Declaration expected but end of file found
C:\CodeGear\RAD Studio\5.0\RBuilder\Languages>"C:\CodeGear\RAD
Studio\5.0\bin\dc
c32.exe" -r ptb\rbIDE.rc
CodeGear Delphi for Win32 compiler version 18.5
Copyright (c) 1983,2007 CodeGear
ptb\rbIDE.rc(642)
ptb\rbIDE.rc(643) Error: E2029 Declaration expected but end of file found
C:\CodeGear\RAD Studio\5.0\RBuilder\Languages>"C:\CodeGear\RAD
Studio\5.0\bin\dc
c32.exe" -r ptb\rbDADE.rc
CodeGear Delphi for Win32 compiler version 18.5
Copyright (c) 1983,2007 CodeGear
ptb\rbDADE.rc(160)
ptb\rbDADE.rc(161) Error: E2029 Declaration expected but end of file found
C:\CodeGear\RAD Studio\5.0\RBuilder\Languages>"C:\CodeGear\RAD
Studio\5.0\bin\dc
c32.exe" -r ptb\rbRAP.rc
CodeGear Delphi for Win32 compiler version 18.5
Copyright (c) 1983,2007 CodeGear
ptb\rbRAP.rc(105)
ptb\rbRAP.rc(106) Error: E2029 Declaration expected but end of file found
C:\CodeGear\RAD Studio\5.0\RBuilder\Languages>
This discussion has been closed.
Comments
This error indicates that your .rc file is corrupt. Did you create this
file using the ReportBuilder Language Application?
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Please do not post attachments to these newsgroups.
Looking at your log output, it seems you are trying to compile the .rc
files. You need to use the Borland Resource Compiler (brc32.exe) to
generate the .res files.
The top of the batch file should read the following...
set BRC="c:\program files\CodeGear\RADStudio\5.0\bin\brc32.exe"
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Oooops, I was using DCC32. Sorry :-(
With brc32 works :-)
I have to distribute any file (example: rbPrint.PTB) with my applications ?
Thanks,
Samuel
Nico Cizik (Digital Metaphors) escreveu o seguinte em 01/02/2008 14:18:
You only need to distribute the language .dll files if you want to allow
your customers to switch between languages from your application. If you
build you application with the Lauguage property set to PTB, you do not need
to distribute the rbPrint.PTB. See the ReadMe.doc file in the
\RBuilder\Languages\.... directory for more information.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
If I do not send any DLL with my application (example: rbPrint.PTB) and
user have the file rb??????.dft (in english or other language) in
Windows\System32, my application show hints and messages in this
language (not in Brazilian Portuguese).
How to ignore this DLLs ?
Thank you and sorry my poor english.
Samuel
Nico Cizik (Digital Metaphors) escreveu o seguinte em 05/02/2008 11:43:
Take the .res files that generated for Brazilian Portuguese and copy them to
RBuilder\Lib. Then when you build your application, those resources will be
included as the default language and you will not need to distribute any
language modules.
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
doesn´t use this ?
How to proceed to my EXE files ignore this DLLs if rpPrint.PTB (or DFT)
existis in C:\Windows\System32 ?
Nard Moseley (Digital Metaphors) escreveu o seguinte em 05/02/2008 16:01:
If the language modules are installed, then yes they will be used. Check out
the TppResourceManager class defined in ppUtils.pas.
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Nard Moseley (Digital Metaphors) escreveu o seguinte em 06/02/2008 12:59:
The ppUtils unit contains classes and functions that are used throughout
ReportBuilder. The TppResourceManager is one such class. There is no way to
remove it.
I don't understand what you are trying to accomplish. If the language
modules are installed on the machine - then use them - that is what they are
there for. If the language modules are not installed on the machine then the
default language that you compiled into the application will be used.
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
My english is poor but I try to explain the "problem".
My program run direct from the WEB, the user doesn´t need to install any
file, DLL or OCX on this machine (download & run it).
The only language that I need is Brazilian Portuguese, and all hints,
messages, captions, reports, are in this language.
If user have any other program using ReportBuilder installed on this PC,
this program can maybe installed the rpPrint.DFT in English or other,
and this affect my application (all messages in Brazilian Portuguese,
except messages from ReportBuilder).
Have any person on Digital-Metaphors that speak portuguese ?
for your application...
- compile Brazilian Portuguese .res into the application.
- set Report.Language to lgPortugueseBrazil. You can programmatically use
the Report.Template.OnLoadEnd event to set this property at run-time.
deployment tests.....
1. Machine1 has no language modules installed - Reports appear in Brazilian
Portuguese
2. Machine2 has english language modules as .dft or .eng. Reports appear in
Brazilian Portuguese
3. Machine3 has language modules X installed. Reports appear in Brazilian
Portuguese
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Where is "Brazilian Portuguese.res" file ?
Is the file \PTB\rbprint.res ? If yes, how to compile this file in
application ?
If I included this file using {$R C:\CodeGear\RAD
Studio\5.0\RBuilder\Languages\Ptb\rbPrint.res} I received error message:
[DCC Error] PowerVendas3.dpr(39): E1026 File not found:
'C:\CodeGear\RAD.RES'
If I include with command {$R rbPrint.res} the errors was:
[DCC Error] E2161 Warning: Duplicate string: ID 43001; File
C:\CodeGear\RAD Studio\5.0\RBuilder\Source\rbPrint.res string kept: "100
%"; file C:\CodeGear\RAD Studio\5.0\RBuilder\Source\rbPrint.res resource
discarded: "100 %".
After 101 Warnings, Delphi shows:
[DCC Error] E2226 Compilation terminated; too many errors
Nard Moseley (Digital Metaphors) escreveu o seguinte em 08/02/2008 14:18: