I have run into a wall on trying to compile a .rc file to .res that contains all my application icons and bitmap files.
BRW will only import up to 24 bit images so I downloaded Resedit to test the ability to import a 32 bit .bmp which was successful.
Borland 5.5 can only compile a .rc that has up to 24 bit resolution bitmaps and errors on the compile ..
Here is my revised rc2dll32.bat file and the .rc resulting compile.. does anyone have advice on a resource compiler that will compile .rc to .res ? .. and I imagine if I do get a .res file to compile, I bet the resulting .exe will be corrupt ?
Rick Lipkin
- 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 WEBCRAWL.RES
DEL WEBCRAWL.RC
COPY *.RC WEBCRAWL.RC
C:\BORLAND\BCC55\BIN\bcc32 -c c:\fwh910\dll\screen32.c
C:\BORLAND\BCC55\BIN\brc32 -r %1.rc
REM 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
del *.~??
echo done!
- Code: Select all Expand view
C:\Fox\WebCrawlSave 6-21-11>rem syntax: rc2dll32.bat Your_rc_file !!! without the .RC extension
C:\Fox\WebCrawlSave 6-21-11>DEL WEBCRAWL.RES
C:\Fox\WebCrawlSave 6-21-11>DEL WEBCRAWL.RC
C:\Fox\WebCrawlSave 6-21-11>COPY *.RC WEBCRAWL.RC
ICONS.RC
IMAGE.RC
LINKINSP.RC
LOGIN.RC
LOGVIEW.RC
RESULTS.RC
SCRAPE_H.RC
SCRAPE_T.RC
SEARCH.RC
URLTEST.RC
USERBROW.RC
USERVIEW.RC
UTILMENU.RC
VENDOR.RC
WEBBROW.RC
WEBVIEW.RC
1 file(s) copied.
C:\Fox\WebCrawlSave 6-21-11>C:\BORLAND\BCC55\BIN\bcc32 -c c:\fwh910\dll\screen32.c
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
c:\fwh910\dll\screen32.c:
C:\Fox\WebCrawlSave 6-21-11>C:\BORLAND\BCC55\BIN\brc32 -r WEBCRAWL.rc
Borland Resource Compiler Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation. All rights reserved.
Error WEBCRAWL.rc 41 35: Invalid bitmap format
C:\Fox\WebCrawlSave 6-21-11>REM C:\BORLAND\BCC55\BIN\ilink32 /Tpd c:\borland\bcc55\lib\c0d32.obj screen32.obj, WEBCRAWL.dll,,c:\borland\bcc55\lib\cw32.lib c:\borland\bcc55\lib\import32.lib,, WEBCRAWL.res
C:\Fox\WebCrawlSave 6-21-11>del *.iL?
C:\Fox\WebCrawlSave 6-21-11>del *.map
C:\Fox\WebCrawlSave 6-21-11>del *.obj
C:\Fox\WebCrawlSave 6-21-11>del *.tds
C:\Fox\WebCrawlSave 6-21-11>del *.~??
C:\Fox\WebCrawlSave 6-21-11>echo done!
done!