Hello, Problem: the resources in a resource file have ids to be calculated (from rc.exe) like: #define BASEID 0x7000 #define ICON1_ID (BASEID+1) #define ICON2_ID (BASEID+2) ICON1_ID ICON file.ico ... but now i see that rc.exe (from VS2008) stores "0X7000+1" as the id of the first icon,.... (scan throu the generated .res file with ResHacker). Any ideas how i can generate a resource (.res) file with ids 0x7001, 0x7002,. ... ? -- mit freundlichen Grüßen mario semo
Here are some samples : // ok 1000 ICON fade.ico // ERROR! 1000+1 ICON fade.ico // ok 0x7000 ICON fade.ico // ERROR!!! (0x8000) ICON fade.ico // ok !! 0x6000+0x0001 ICON fade.ico // ERROR! 6000+1 ICON fade.ico // ERROR! (6000)+(1) ICON fade.ico //ms1.rc(22) : error RC2135 : file not found: 1 //6000 + 1 ICON fade.ico error! means : a wrong id is exported in the .res file. i found id like "(6000)+(1)" or "1000+1" ??? !! I thought that the resource id is a numeric value. ms. "mario semo" schrieb im Newsbeitrag news:FAEF8669-66DE-4D1A-9BD1-09B318A5AB8E@microsoft.com... > Hello, > > Problem: > the resources in a resource file have ids to be calculated (from rc.exe) > like: > > #define BASEID 0x7000 > #define ICON1_ID (BASEID+1) > #define ICON2_ID (BASEID+2) > > ICON1_ID ICON file.ico > ... > > > but now i see that rc.exe (from VS2008) stores "0X7000+1" as the id of the > first icon,.... > > (scan throu the generated .res file with ResHacker). > > Any ideas how i can generate a resource (.res) file with ids 0x7001, > 0x7002,. ... ? > > -- > mit freundlichen Grüßen > > mario semo
note : inside of a stringtable this is NOT a problem, as in: STRINGTABLE BEGIN 1000+1 "str1" (1000+2) "str2" (0x1000)+(0x2) "str3" END which works fine, the problem just occurs with ICONs etc. ms. "mario semo" schrieb im Newsbeitrag news:F143D72A-F604-4F2B-AB91-7D5B52C7999D@microsoft.com... > Here are some samples : > > // ok > 1000 ICON fade.ico > > // ERROR! > 1000+1 ICON fade.ico > > // ok > 0x7000 ICON fade.ico > > // ERROR!!! > (0x8000) ICON fade.ico > > // ok !! > 0x6000+0x0001 ICON fade.ico > > // ERROR! > 6000+1 ICON fade.ico > > // ERROR! > (6000)+(1) ICON fade.ico > > //ms1.rc(22) : error RC2135 : file not found: 1 > //6000 + 1 ICON fade.ico > > > > error! means : a wrong id is exported in the .res file. i found id like > "(6000)+(1)" or "1000+1" ??? !! I thought that the resource id is a > numeric value. > > ms. > > > "mario semo" schrieb im Newsbeitrag > news:FAEF8669-66DE-4D1A-9BD1-09B318A5AB8E@microsoft.com... >> Hello, >> >> Problem: >> the resources in a resource file have ids to be calculated (from rc.exe) >> like: >> >> #define BASEID 0x7000 >> #define ICON1_ID (BASEID+1) >> #define ICON2_ID (BASEID+2) >> >> ICON1_ID ICON file.ico >> ... >> >> >> but now i see that rc.exe (from VS2008) stores "0X7000+1" as the id of >> the first icon,.... >> >> (scan throu the generated .res file with ResHacker). >> >> Any ideas how i can generate a resource (.res) file with ids 0x7001, >> 0x7002,. ... ? >> >> -- >> mit freundlichen Grüßen >> >> mario semo >