- The rc compiler doesn't use the preprocessor. Is it possible to make it doing?
Not sure I understand...
- After saving a resource with the rc editor. All my comments are deleted... Is this a "must" behaviour?
- The rc editor changes _all_ symbols, the non-touched dialogs too...
The IDE can load/handle resource scripts (.RC), binary resource files (.RES), and resources in executable files. The only common, and generally useful, internal format is the binary resource format. The IDE uses the resource compiler when it loads a script - so it's actually compiled to the binary resource format. When saving again, as a resource script, the script is fabricated from the internal binary format.
This approach saves a lot of code - the IDE don't have to duplicate all code from the resource compiler, and don't have to keep track of comments, file offset of a certain resource, and so on. (I do this for the resource symbol include file (.h), so I know what a royal pain this is).
The only problem with the above approach is that resource identifiers are mapped by number - so they have to be unique within the resource (script). When you create a script from scratch, through the IDE, it will work hard to try and make all identifiers unique. If you create a resource script manually, or through other means, you can get into trouble. But I don't think this is reason enough to change the current approach - it would be almost impossible to maintain this bloated code...
Are symbols sharing the same value illegal?
Normally OK if unique within a certain resource type, but see above...
Pelle