LPCTSTR lpszDllPath = _T("Residentflash\\xxx.dll");
HMODULE hDLL = LoadLibrary(lpszDllPath);
if (NULL == hDLL)
{
MessageBox(_T("Fail"), _T("Error"), MB_OK);
}
else
{
FARPROC pfn = GetProcAddress(hDLL, L"DllRegisterServer");
if (NULL != pfn)
{
MessageBox(_T("OK"),_T("OK"), MB_OK);
pfn();
}
}