Take "qtwinmigrate-2.8-opensource->examples->mfc->step 1 or step2" for example:
HMODULE mod = LoadLibrary( "qtdialog.dll" );
if ( mod ) {
typedef BOOL(*pShowDialog)(HWND parent);
pShowDialog showDialog = (pShowDialog)GetProcAddress( mod, "showDialog" );
if ( showDialog )
showDialog( theApp.m_pMainWnd->m_hWnd );
FreeLibrary( mod );
After the code above, the qtdialog.dll still exist in A.exe. I think it’s a bug.
上面是我发在国外的帖子,直接转过来了。简单来说,我发现用到了qtwinmigrate的DLL,一旦被载入,就无法释放了。谁能帮忙一下,整个互联网我都翻遍了。