To generate a header file you have two options:
1) Look for a compiler that does that
2) Do it yourself
I use option 2)
When you create any control in the resource editor you should give the control and ID. For example for OK and Cancel buttons you can use the standard from Windows
IDOK and IDCANCEL (IDHELP is also standard).
Then you don't need to include anything else. But if you use other ID's then you place them in a header file (*.h)
Example:
In resource (*.rc)
PHP Code:
#include <windows.h>
#include "header.h"
....
CONTROL "&My button", IDC_MY_BUTTON, "BUTTON",
BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 200, 28, 50, 15
....
In header.h
PHP Code:
....
#define IDC_MY_BUTTON 1000
....
And so on for each control.
Then #include also the file header.h in your *.c or *.cpp file