Rc to dll

Rc to dll

Postby Marco Turco » Mon Jul 06, 2009 2: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
User avatar
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London

Re: Rc to dll

Postby Marco Turco » Mon Jul 06, 2009 2: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
User avatar
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London

Re: Rc to dll

Postby Antonio Linares » Mon Jul 06, 2009 8:09 pm

Marco,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Rc to dll

Postby Rick Lipkin » 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: Select all  Expand view

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!
 
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Rc to dll

Postby Marco Turco » Wed Jul 08, 2009 8: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
User avatar
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 115 guests