为什么我在类中不能同时定义另一类的两个对象?
只定义一个时程序能正常运行,可定义两个就要出现问题?真是百思不得其解。
(我要定义的是两个从CMDIChildWnd 派生的类对象指针)
用F5跟踪,问题是: user breakpoint called from code at 0x5f426a49
跟踪到的代码如下:
if (!AfxIsValidAddress(*(void**)pOb, sizeof(void*), FALSE))
    {
        TRACE0("ASSERT_VALID fails with illegal vtable pointer.\n");
        if (AfxAssertFailedLine(lpszFileName, nLine))
            AfxDebugBreak();
        return;     // quick escape
    }