It is probably possible to find some workarounds; for example, you can replace the namespace declarations with a macro (inside the .h file only):
#define NS(n) namespace n {
NS(N01) NS(N02)
// Dialog class
Class MyDialog
{
. . .
}
} }
Then “Add Variable…” should work. However, MFC was not designed for such scenarios and some of special features, introduced by existing DECLARE_DYNAMIC macros, probably will not always work.