resedit command

resedit command

Postby Silvio.Falconi » Sun Jun 12, 2016 9: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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 6774
Joined: Thu Oct 18, 2012 7:17 pm

Re: resedit command

Postby Rick Lipkin » Sun Jun 12, 2016 3: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: Select all  Expand view

@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
Last edited by Rick Lipkin on Sun Jun 12, 2016 8:45 pm, edited 1 time in total.
User avatar
Rick Lipkin
 
Posts: 2618
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: resedit command

Postby TimStone » Sun Jun 12, 2016 6: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
User avatar
TimStone
 
Posts: 2904
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: resedit command

Postby Rick Lipkin » Sun Jun 12, 2016 8: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
User avatar
Rick Lipkin
 
Posts: 2618
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: resedit command

Postby TimStone » 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
User avatar
TimStone
 
Posts: 2904
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: resedit command

Postby Marcelo Via Giglio » Mon Jun 13, 2016 2:24 am

simple add the resource file to the project like a prg, and you can add as many as you need
Marcelo Via Giglio
 
Posts: 1050
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia

Re: resedit command

Postby nageswaragunupudi » Mon Jun 13, 2016 4: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
User avatar
nageswaragunupudi
 
Posts: 10248
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: resedit command

Postby Silvio.Falconi » Mon Jun 13, 2016 7: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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 6774
Joined: Thu Oct 18, 2012 7:17 pm

Re: resedit command

Postby Marcelo Via Giglio » Mon Jun 13, 2016 1: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
Marcelo Via Giglio
 
Posts: 1050
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia

Re: resedit command

Postby Silvio.Falconi » Mon Jun 13, 2016 2:35 pm

I use xmate.
with xmate I use PellesC as you can see on this picture of xmate's Configuration


Image




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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 6774
Joined: Thu Oct 18, 2012 7:17 pm

Re: resedit command

Postby Marcelo Via Giglio » Mon Jun 13, 2016 3: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
Marcelo Via Giglio
 
Posts: 1050
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia

Re: resedit command

Postby Rick Lipkin » Mon Jun 13, 2016 9: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
User avatar
Rick Lipkin
 
Posts: 2618
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 87 guests