BOOL RM_GetModule(IRMPage** ppInterface) { AFX_MANAGE_STATE(AfxGetStaticModuleState()); HINSTANCE hInst = AfxGetInstanceHandle(); //return NULL ........ }
BOOL CReMain2Dlg::OnInitDialog() { CDialog::OnInitDialog(); .......... HINSTANCE hmCurrentModule; if((hmCurrentModule = AfxLoadLibrary("mydll.dll"))){ (FARPROC&)pPageItem->pfGetModule = GetProcAddress( hmCurrentModule, "RM_GetModule"); pPageItem->pfGetModule(&(pPageItem->pPage)); //call .......... } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)