View Full Version : problem declaring a class

26th May 2006, 17:57
hi, I coded this; but compiler gets errors on MySubmenu constructor in .cpp ...What's the problem? thanks

mypopupmenu.cpp(40): error C2653: 'MySubmenu' : is not a class or namespace name
mypopupmenu.cpp(42): error C2550: 'MySubmenu' : constructor initializer lists are only allowed on constructor definitions

26th May 2006, 18:12
Well, you have an extra p in the declaration. "MySubpmenu". Could that be it? :)