MFC window in a gauge project wont link

#1
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?

Thanks,

Si

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:
Top