举例证明:
在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中编译,结果可能不一样.不知道还有没有其他的地方,也不知道为什么微软这样改这么小的地方。
就打印预览关闭而言,这个改变是不错的。
但是微软究竟想做什么?还有哪些也改了?
MFC8和MFC4.2在源码级不是兼容的
最新推荐文章于 2024-07-27 10:11:17 发布