On Mon, 29 Mar 2010, Szak�ts Viktor wrote: Hi,
> >> /* > >> * $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? best regards Przemek _______________________________________________ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour