MFC8 and MFC4.2 are not compatible in the source level

xiaoxiao2021-03-06  40

Exemplified: In the mfc8, void CFrameWnd :: OnClose () {if (m_lpfnCloseProc = NULL!) (* M_lpfnCloseProc) (this); // Note: only queries the active document CDocument * pDocument = GetActiveDocument (); ... ... in mfc4.2 in, void CFrameWnd :: OnClose () {if (m_lpfnCloseProc = NULL && (* m_lpfnCloseProc) (this)!!) return; // Note: only queries the active document CDocument * pDocument = GetActiveDocument (); ... So, the same code, compile in MFC8, the result may not be the same. I don't know if there is any other place, I don't know why Microsoft is so small. This change is good for printing preview. But what is Microsoft want to do? What else is there?

转载请注明原文地址:https://www.9cbs.com/read-74603.html

New Post(0)