摘要: 如何实现DLL资源切换的?AFX_MANAGE_STATE(AfxGetStaticModuleState())这就是他们的答案,一如微软的推荐,原来就是这么简单啊!让我们来看看,这句代码到底做了什么?#define AFX_MANAGE_STATE(p) AFX_MAINTAIN_STATE2 _ctlState(p);AFX_MAINTAIN_STATE2::AFX_MAINTAIN_STATE2(AFX_MODULE_STATE* pNewState) { m_pThreadState = _afxThreadState; m_pPrevModuleState = m_pThread.. 阅读全文
posted @ 2012-01-04 18:00 indif 阅读(707) 评论(0) 推荐(0) 编辑