Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/157.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 如何使用显式链接到客户端应用程序的常规MFC dll_C++_Visual Studio_Mfc - Fatal编程技术网

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

C++ 如何使用显式链接到客户端应用程序的常规MFC dll,c++,visual-studio,mfc,C++,Visual Studio,Mfc,我正在编写一个带有静态链接MFC的MFC正则dll,其中使用了一些MFC DAO类。我需要在运行时将其链接到客户端应用程序。在调用FreeLibrary()函数之前,一切都很顺利。我在这里的模块appcore中得到一个断言 if (m_lpfnDaoTerm != NULL) { // If a DLL, YOU must call AfxDaoTerm prior to ExitInstance ASSERT(!afxContextIsDLL); (*m_lpfnDao

我正在编写一个带有静态链接MFC的MFC正则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时是否有一些功能?

您是否尝试在断言之前跟随注释?噢,thanx,我必须更加注意。