FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour resedit command
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
resedit command
Posted: Sun Jun 12, 2016 09:47 AM

someone Know the command I can insert on xmate to compile a exe with resources ?

with Pelles I use
c:\work\PellesC\Bin\PORC.EXE %RC% /I c:\work\pellesc\include /I c:\work\pellesc\include\win

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: resedit command
Posted: Sun Jun 12, 2016 03:23 PM
Silvo

I don't know if this is exactly what you are looking for .. I use a modified Rc2Dll32.bat to copy all my .rc files together and then compile them with Borland into a single .res. I then add the .res to the xMate compile list.

Code (fw): Select all Collapse
@Echo Off
: RC file to 32 bits .res
: syntax: rc2dll32.bat Your_rc_file  !!! without the .RC extension

DEL VehW32.RC
DEL VehW32.RES

COPY *.RC VehW32.RC

:  create a monolithic .res from all my .rc
C:\BORLAND\BCC70\BIN\brc32 -r %1.rc

:  cleanup
del *.iL?
del *.map
del *.obj
del *.~rc
del *.rws
del *.tds
echo done!


Rick Lipkin
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: resedit command
Posted: Sun Jun 12, 2016 06:25 PM

Seems like a lot of work.

With xBuild you just add the .rc file(s) and Pelles does all the work ( xHarbour )

With Harbour / MSVC 2015, we just add the .rc to the script and have specified the the rc executable supplied by Microsoft ...

Easy enough all the way around.

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: resedit command
Posted: Sun Jun 12, 2016 08:12 PM

Tim

Yes, you can add each .rc to your compile list .. just too many to keep up with .. Since .rc is just a text file anyway .. I just copy them all together into one monolithic .rc .. so I just have one file to add to my compile list.. either as one single .rc or compiled as .res.

I think with xMate you can call out to any external program ( .bat ) and run pre-compile .. just never tried to figure it out.

Rick Lipkin

Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: resedit command
Posted: Sun Jun 12, 2016 11:42 PM

I use Ultra Edit Studio so it would be no problem.

However, I only use one large .rc file. Any resource in it can be found instantly. I just look at the resource name in the .prg, then do a quick find to move to it in the .rc.

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 1088
Joined: Fri Oct 07, 2005 03:33 PM
Re: resedit command
Posted: Mon Jun 13, 2016 02:24 AM

simple add the resource file to the project like a prg, and you can add as many as you need

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: resedit command
Posted: Mon Jun 13, 2016 04:07 AM
Marcelo Via Giglio wrote:simple add the resource file to the project like a prg, and you can add as many as you need

Yes and xMate makes it very easy.
What Mr Rick does is his personal convenience, but not necessary.
Regards



G. N. Rao.

Hyderabad, India
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: resedit command
Posted: Mon Jun 13, 2016 07:23 AM

I use Xmate to build exe , lib and dll from I use fivewin for habour and I used it also with fivewin with ca-clipper with success from many years.
I use Pellesc but now I wish use ( I want try) Resedit but I not Know how compile rc file from xmate with Resedit

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 1088
Joined: Fri Oct 07, 2005 03:33 PM
Re: resedit command
Posted: Mon Jun 13, 2016 01:27 PM

Silvio,

resedit is a resource editor, to add rc file to xMate project simplity add the rc file to the project like a prg file, maybe the problem is other with the resedit configuration and the rc file need some extra headers. Start your RC file from other in the fivewin's sample folder and try to add to the project

regards

Marcelo

Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: resedit command
Posted: Mon Jun 13, 2016 02:35 PM
I use xmate.
with xmate I use PellesC as you can see on this picture of xmate's Configuration







Wich is the command line if I wish use resedit instead of PellesC ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 1088
Joined: Fri Oct 07, 2005 03:33 PM
Re: resedit command
Posted: Mon Jun 13, 2016 03:10 PM

Silvio,

I use BCC to compile, the Resource Compiler option which I use is:

%C_BIN_INSTALL%\Brc32.Exe -r -fo%RES% %RC%

Regards

Marcelo Vía

Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: resedit command
Posted: Mon Jun 13, 2016 09:09 PM
Silvo

Here is the command line options for Resedit .. hope this helps


Command-line mode

ResEdit supports a command-line mode ton convert a file to another format. Input and output files can be resource scripts (*.rc), compiled resource scripts (*.res) and Win32 PE files (*.exe, *.dll). The file convertion works just like if you open a file and save it in the new format.

The usage of ResEdit in command-line mode is the following :

ResEdit.exe -convert <input_file> <output_file>
For example :
ResEdit.exe -convert my_script.rc executable.exe
ResEdit.exe -convert my_script.dll executable.res
The format of the input an output files are automatically determined from the file extensions.


Rick Lipkin

Continue the discussion