I found out that if the wrc.exe -ad option is replaced with -zm, the resulting RES file is broken. It crashes the tool "ResourceHacker", and the resulting DLL file is broken too.
The command line is:
wrc ..\win_res.rc -bt=nt -zku8 -dWIN32 -d_WIN32 -d__NT__ -dWIN_ENV=1 -dINSIDE_PHOTOSHOP=1 -dMSWindows=1 -i=d:\SVN\FilterFoundry\trunk\;C:\WATCOM\h;C:\WATCOM\h\nt;..\photoshop_sdk\pluginsdk\photoshopapi\Photoshop;..\photoshop_sdk\pluginsdk\photoshopapi\Pica_sp;.\ -q -ad -r -fo=win_res.res
Hello,
I found out that if the wrc.exe
-ad
option is replaced with-zm
, the resulting RES file is broken. It crashes the tool "ResourceHacker", and the resulting DLL file is broken too.The command line is:
wrc ..\win_res.rc -bt=nt -zku8 -dWIN32 -d_WIN32 -d__NT__ -dWIN_ENV=1 -dINSIDE_PHOTOSHOP=1 -dMSWindows=1 -i=d:\SVN\FilterFoundry\trunk\;C:\WATCOM\h;C:\WATCOM\h\nt;..\photoshop_sdk\pluginsdk\photoshopapi\Photoshop;..\photoshop_sdk\pluginsdk\photoshopapi\Pica_sp;.\ -q -ad -r -fo=win_res.res
Note: The project to be built is https://github.com/danielmarschall/filter_foundry/tree/master/wpj
Environment: Windows 10 x64 . OpenWatcom Build "14 May 2022"
Here are the test files: Broken Resource.zip