| Corey Wirun 2005-03-10, 4:00 pm |
| Hi All,
Can someone tell me how to get calculated resource symbols to 'calculate'?
I've got several .rc files with resource symbols of the form:
file1.rh
#define IDBM_OBJECT_BASE 1000
....
file2.rh
#define IDBM_OBJECT_DEFAULT IDBM_OBJECT_BASE+1
....
#define IDBM_O_V_UNKNOWN IDBM_OBJECT_DEFAULT+1
And 'IDBM_O_V_UNKNOWN' is used in the RC file as such:
IDBM_O_V_UNKNOWN BITMAP "../bitmaps256/gui_obj/v_unknown.bmp"
But the resource compiler shows the bitmap name as '1000+1+1', not as '1002'
I tried putting the .rh files as READONLY symbols, which I thought would get
it to resolve, but that didn't work either:
file.rc:
#define APSTUDIO_READONLY_SYMBOLS
////////////////////////////////////////////////////////////////////////////
/
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "..\..\..\include\objects\file1.rh"
#include "..\..\..\include\objects\file2.rh"
////////////////////////////////////////////////////////////////////////////
/
#undef APSTUDIO_READONLY_SYMBOLS
Does anyone have any idea what is going on here? Can I get my BITMAPs to be
named by ID and not by string?
Thanks!
Corey.
|