Enrico
I use the below modified Rc2Dll32.bat file that copies all my .rc to a single .rc and then compiles to .res. The line below fails twice :
@Echo Off
rem RC file to 32 bits resources DLL
rem syntax: rc2dll32.bat Your_rc_file !!! without the .RC extension
DEL VehW32.DLL
DEL VehW32.RC
DEL Veh3W2.RES
COPY *.RC VehW32.RC
C:\BORLAND\BCC72\BIN\brc32 -r %1.rc
del *.iL?
del *.map
del *.obj
del *.~rc
del *.rws
:del *.res
del *.tds
echo done!
The result of the batch file is
WORKVEH.RC
WOTIRE.RC
WRKADD.RC
xplook.rc
1 file(s) copied.
Borland Resource Compiler Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation. All rights reserved.
Error prsht.h 917 1: '#endif' before '#if'
done!
To fix in line 184 of Prsht.h remove the trailing /
LPFNPSPCALLBACKW pfnCallback; \
UINT *pcRefParent; // \ <--- remove trailing backslash line 184
ReRun the batch file again and you get this error:
WORKVEH.RC
WOTIRE.RC
WRKADD.RC
xplook.rc
1 file(s) copied.
Borland Resource Compiler Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation. All rights reserved.
Error combaseapi.h 283 9: Symbol PURE is already defined. Redefinition is not the same
done!
To fix in line 283 of Combaseapi.h rem out the entire line
// #define PURE
Rerun the batch file and now I get a clean .res to compile into my application
Rick Lipkin
ps ... if I use the single VehW32.rc alone in my compile list ( instead of VehW32.res ) .. I get the same header file compile errors.