I have a utility that creates a .cpp and a .h file using a .rc file as input. For example, the .h file contains
#define HIDD_RENAME_DIALOG 100000
#define HIDC_RICHEDIT 100001
#define HIDC_STATUSBAR 100002
#define HIDC_MIN_RECT 100003
...
and the .cpp file contains
// IDD_RENAME_DIALOG
IDD_RENAME_DIALOG, HIDD_RENAME_DIALOG,
IDC_RICHEDIT, HIDC_RICHEDIT,
IDC_STATUSBAR, HIDC_STATUSBAR,
IDC_MIN_RECT, HIDC_MIN_RECT,
...
If you think you will be able to use this, I will upload it to Codeproject. If you do not want to run an unknown exe, email me your .rc file and I will email you back the .h and .cpp files.
hdietrich at gmail dot com