MFC window in a gauge project wont link

I'm trying to add an MFC dialog class to a C gauge project so that I can open a window for additional user settings.

The trouble I'm having is that the project wont link, saying that the ID of my dialog (IDD_SETTINGS) is an undeclared identifier. It's set up in the resource file, which is being compiled as it also contains my gauge bitmap ids, but the MFC stuff just doesn't seem to see it.

Any ideas?



Update: I've found that problem. It'd created a new resource.h with all the IDD and IDCs in it, but not included it in the build. But now I get a DLLmain already defined linker error.
Last edited:
Never mind. I've given up trying to integrate MFC classes and stuck with Win32. That all seems to work without a problem.