MFC8和MFC4.2在源碼級不是兼容的

舉例證明:
在mfc8中,
void CFrameWnd::OnClose()
{
 if (m_lpfnCloseProc != NULL)
  (*m_lpfnCloseProc)(this);
 // Note: only queries the active document
 CDocument* pDocument = GetActiveDocument();
...
...
而在mfc4.2中,
void CFrameWnd::OnClose()
{
 if (m_lpfnCloseProc != NULL && !(*m_lpfnCloseProc)(this))
  return;
 // Note: only queries the active document
 CDocument* pDocument = GetActiveDocument();
...
...
所以,相同的代碼,在mfc8中編譯,結果可能不一樣.不知道還有沒有其他的地方,也不知道爲什麼微軟這樣改這麼小的地方。
就打印預覽關閉而言,這個改變是不錯的。
但是微軟究竟想做什麼?還有哪些也改了?

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章