Trying to lessen the mess, can you try this one?:

---
/*
 * $Id: hbrun.rc 14255 2010-03-28 17:23:00Z vszakats $
 */

#if ( defined( OS2 ) || defined( __OS2__ ) || defined( OS_2 ) ) && ! defined( 
__GNUC__ )
/* os2/watcom */
      ICON DISCARDABLE "../../../../../package/harbour.ico"
#else
ICON1 ICON DISCARDABLE "../../../../../package/harbour.ico"
#endif
---

Also if the icon is indeed visible as app icon.

Brgds,
Viktor

On 2010 Mar 29, at 11:54, Viktor Szakáts wrote:

>> windres has a different syntax from rc, see attached file which I can 
>> compile with
>> 
>> (E:\REPOSITORY\HARBOUR\utils\hbrun\obj\os2\gcc)windres -r -DOS2 
>> ..\..\..\hbrun.rc
> 
> Can you try two things with included .rc file:
> 1. Does it work with standard windres command-line?
>    windres -O [omf|coff] -o hbrun.res hbrun.rc
> 2. Does this .rc format work with watcom?
> 
> --- hbrun.rc
> #if defined( OS2 ) || defined( __OS2__ ) || defined( OS_2 )
> #if defined( __GNUC__ )
> /* os2/gcc */
> 1 ICON DISCARDABLE "..\\..\\..\\..\\..\\package\\harbour.ico"
> #else
> /* os2/watom */
> ICON 1 DISCARDABLE "..\\..\\..\\..\\..\\package\\harbour.ico"
> #endif
> #elif defined( __BORLANDC__ )
> /* win/bcc */
> ICON1 ICON DISCARDABLE "..\..\..\..\..\package\harbour.ico"
> #else
> /* win */
> ICON1 ICON DISCARDABLE "..\\..\\..\\..\\..\\package\\harbour.ico"
> #endif
> ---
> 
> [ Quite nicely standardized format. not. ]
> 
> Brgds,
> Viktor
> 

_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to