On 2010 Mar 31, at 11:06, Maurilio Longo wrote: > Viktor, > > it seems the problem was in adding the win32 .ico to hbrun the cause of the > problems reported yesterday. I'm not 100% sure, though, since I've done a > thousands different tests. > > Now, with attached hbrun.rc, harbos2.ico and this command, which, as you can > see, I execute from within obj\os2\gcc of hbrun I can attach OS/2 .ico and it > shows inside OS/2 gui and even when I start hbrun.exe, the title-bar icon gets > changed to the correct one. > > > (E:\REPOSITORY\HARBOUR\utils\hbrun\obj\os2\gcc)rc -DOS2 -p ..\..\..\hbrun.rc > ..\..\..\..\..\bin\os2\gcc\hbrun.exe > > Operating System/2 Resource Compiler > Version 4.00.011 Oct 10 2000 > (C) Copyright IBM Corporation 1988-2000 > (C) Copyright Microsoft Corp. 1985-2000 > All rights reserved. > > Creating binary resource file ..\..\..\hbrun.RES > RC: RCPP -E -D RC_INVOKED -D OS2 -W4 -f ..\..\..\hbrun.rc -ef D:\OS2\RCPP.ERR > > ..\..\..\hbrun.rc > Writing resources to OS/2 v2.0 Linear .EXE file > Writing 1 DEMAND resource object(s) > Writing: 3428 bytes in 1 page(s) > 1.1 (3428 bytes) > Writing Extended Attributes: Default Icon > Writing Extended Attributes: Checksum > > > It creates a hbrun.res inside utils\hbrun, which should be deleted somehow and > the gcc.mk should be changed to call rc with the above syntax, which I don't > know how to do, since as it is now the .mk files add the .res file to the > .exe, while rc can do this task, and most important, write the extended > attribute of the file with a copy of the .ico, so that it shows inside the > OS/2 gui. > > Let me know.
Many thanks for you research. Nevertheless I'd like to propose to drop this whole feature for OS/2, as it needs too many irregular hacks and I just don't feel confident to add deep change for such things in GNU Make system :( rc.exe looks like a seriously bare/limited tool. After all it's just hbrun.exe's icon, which is not such an important feature to justify all this. We can still try adding support to hbmk2, but here again comes the limitation of rc.exe in the way. It'd be crucial to control the output filename. Last thing to check is whether they fixed windres.exe in recent (4.x?) gcc versions. Brgds, Viktor _______________________________________________ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour