Page 1 of 1

resedit command

PostPosted: Sun Jun 12, 2016 9:47 am
by Silvio.Falconi
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

Re: resedit command

PostPosted: Sun Jun 12, 2016 3:23 pm
by Rick Lipkin
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

Re: resedit command

PostPosted: Sun Jun 12, 2016 6:25 pm
by TimStone
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.

Re: resedit command

PostPosted: Sun Jun 12, 2016 8:12 pm
by Rick Lipkin
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

Re: resedit command

PostPosted: Sun Jun 12, 2016 11:42 pm
by TimStone
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.

Re: resedit command

PostPosted: Mon Jun 13, 2016 2:24 am
by Marcelo Via Giglio
simple add the resource file to the project like a prg, and you can add as many as you need

Re: resedit command

PostPosted: Mon Jun 13, 2016 4:07 am
by nageswaragunupudi
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.

Re: resedit command

PostPosted: Mon Jun 13, 2016 7:23 am
by Silvio.Falconi
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

Re: resedit command

PostPosted: Mon Jun 13, 2016 1:27 pm
by Marcelo Via Giglio
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

Re: resedit command

PostPosted: Mon Jun 13, 2016 2:35 pm
by Silvio.Falconi
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 ?

Re: resedit command

PostPosted: Mon Jun 13, 2016 3:10 pm
by Marcelo Via Giglio
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

Re: resedit command

PostPosted: Mon Jun 13, 2016 9:09 pm
by Rick Lipkin
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