Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Tue, 6 May 2008 17:10:36 +0200,    group: microsoft.public.platformsdk.tools        back       


RC.EXE + id calculation   
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
date: Tue, 6 May 2008 17:10:36 +0200   author:   mario semo

Re: RC.EXE + id calculation   
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
date: Wed, 7 May 2008 17:19:42 +0200   author:   mario semo

Re: RC.EXE + id calculation   
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
>
date: Wed, 7 May 2008 19:44:11 +0200   author:   mario semo

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us