如何使用显式链接到客户端应用程序的常规MFC DLL

时间:2015-04-12 09:42:28

标签: c++ visual-studio mfc

我正在使用静态链接的MFC编写MFC regural dll,我在其中使用了一些MFC DAO类。我需要在运行时将其链接到客户端应用程序。一切顺利,直到我调用FreeLibrary()函数。我在这个地方的模块appcore中得到一个断言

if (m_lpfnDaoTerm != NULL)
{
    // If a DLL, YOU must call AfxDaoTerm prior to ExitInstance
    ASSERT(!afxContextIsDLL);
    (*m_lpfnDaoTerm)();
}

为什么会出现任何建议? 明确链接MFC dll时是否有一些功能?

0 个答案:

没有答案