Hi Przemek,

>>>> * $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
>>>> ---
>>> without icon ID for the os2/watcom line?
>> Yes.
> 
> OS2 OW resource compiler (wrc) accepts only numeric IDs which have to be
> given explicitly or indirectly by #define macros. It also uses a little
> bit different syntax and it needs resource type at the beginning of
> definition instead of resource ID, i.e.:
> 
>   ICON   1 DISCARDABLE "icon1.ico"
>   ICON   2 DISCARDABLE "icon2.ico"
>   BITMAP 1 DISCARDABLE "bitmap1.bmp"
>   BITMAP 2 DISCARDABLE "bitmap2.bmp"
> 
> so the correct definition should look like:
> 
>   ICON 1 DISCARDABLE "../../../../../package/harbour.ico"
> 
> You can use also:
> 
>   #define ICON1  1
>   ICON ICON1 DISCARDABLE "../../../../../package/harbour.ico"
> 
> It should be more readable for windows users and allow to easy extract
> IDs used in resource file, i.e. they can be moved to some .h or .ch file
> which is included from the source code and .rc file.
> 
> I have no idea what means:
> 
>   ICON DISCARDABLE "../../../../../package/harbour.ico"
> 
> Maybe DISCARDABLE is preprocessed by wrc to some numeric value which
> is later used as icon ID?

Can be, I don't know. For sure, after your suggestions now 
I'm back to original commit for OS/2 (which matches hbmk2), 
with the only difference that forwards slashes are used.

This was reported by Maurilio to fail with gcc, but maybe 
it was the slashes. I'll commit it and we will see.

This is current version:
---
#if defined( OS2 ) || defined( __OS2__ ) || defined( OS_2 )
ICON 1 DISCARDABLE "../../../../../package/harbour.ico"
#else
ICON1 ICON DISCARDABLE "../../../../../package/harbour.ico"
#endif
---

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