FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Rc to dll
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
Rc to dll
Posted: Mon Jul 06, 2009 02:25 PM

Hi all,
how can I convert more .rc files in a single .dll file ?

Thanks in advance

Best Regards,



Marco Turco

SOFTWARE XP LLP
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
Re: Rc to dll
Posted: Mon Jul 06, 2009 02:57 PM

I already tried with the rc2dll32.bat provided into fwh\dll but the following error appairs:

K:\FWH\dll>k:\bcc55\bin\ilink32 /Tpd k:\bcc55\lib\c0d32.obj screen32.obj, pigc.d
ll,,k:\bc55\lib\cw32.lib k:\bcc55\lib\import32.lib,, pigc.res
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Fatal: Access violation. Link terminated.
Warning: Unable to perform incremental link - performing full link...
Fatal: Access violation. Link terminated.

I think the problem could be due to the big size of my rc file.
Is there any other way to generate a dll file ?

Best Regards,



Marco Turco

SOFTWARE XP LLP
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Rc to dll
Posted: Mon Jul 06, 2009 08:09 PM

Marco,

You could try to use Microsoft RC.EXE instead of Borland BRC32.EXE

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Rc to dll
Posted: Mon Jul 06, 2009 11:23 PM
Marco

.rc files can all me concantonated together in one single file .. Here is a sample of one of my scripts. Notice the command line :

copy *.rc PCASW32.rc

Rick

Code (fw): Select all Collapse
rem RC file to 32 bits resources DLL
rem syntax: rc2dll32.bat Your_rc_file  !!! without the .RC extension

DEL PCASW32.DLL
DEL PCASW32.RES
DEL PCASW32.RC

COPY *.RC PCASW32.RC

C:\BORLAND\BCC55\BIN\bcc32 -c c:\fwh904\dll\screen32.c
C:\BORLAND\BCC55\BIN\brc32 -r %1.rc
C:\BORLAND\BCC55\BIN\ilink32 /Tpd c:\borland\bcc55\lib\c0d32.obj screen32.obj, %1.dll,,c:\borland\bcc55\lib\cw32.lib c:\borland\bcc55\lib\import32.lib,, %1.res
del *.iL?
del *.map
del *.obj
:del *.res
del *.tds
echo done!
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
Re: Rc to dll
Posted: Wed Jul 08, 2009 08:32 AM

Hi Rick,
I already tried merging all .rc file in a single .rc but the error is the same.
I am trying now the Antonio's suggested solution and I will know you.

Thanks

Best Regards,



Marco Turco

SOFTWARE XP LLP

Continue the discussion