Argh! This seems like a trivial thing to fix, but I can't figure out what I'm doing wrong...
I'm using VS2010, and I created a menu using the editor....right clicked on the menu item and clicked 'Add Event Handler'.....filled in all the necessary bits and pieces.
then when I go to compile it, it gives me this error messeage:
c:\users\alvin\documents\visual studio 2010\projects\emergence\emergence\emergenceview.cpp(30): error C2065: 'ID_MUTATE_GROUP' : undeclared identifier
Here is the relevant block of code:
BEGIN_MESSAGE_MAP(CEmergenceView, CRichEditView)
// Standard printing commands
ON_COMMAND(ID_FILE_PRINT, &CRichEditView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_DIRECT, &CRichEditView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_PREVIEW, &CEmergenceView::OnFilePrintPreview)
ON_WM_CONTEXTMENU()
ON_WM_RBUTTONUP()
ON_COMMAND(ID_MUTATE_GROUP, &CEmergenceView::OnMutateGroup)
END_MESSAGE_MAP()
I have checked resource.h and ID_MUTATE_GROUP is defined there...
Please help!