Hi,
I was just wondering if it would be theoretically possible to use Template metaprogramming to process the resource.h file, and create a map of resource string to their numberic ID's. For example:
generating map:Code:#define ID_VIEW_APPLOOK_OFF_XP 206 #define ID_VIEW_APPLOOK_WIN_XP 207 #define ID_VIEW_APPLOOK_OFF_2003 208 #define ID_VIEW_APPLOOK_VS_2005 209 #define ID_VIEW_APPLOOK_VS_2008 210
I guess a perl script on a pre-build step could do something similar and modify a .cpp with all the entries to build up the map.Code:resourceString.insert(std::pair<string, int>("ID_VIEW_APPLOOK_OFF_XP", 206))