wince 注册 com组件

  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();
     }
  
  }

posted on 2009-11-24 18:04  apple0809  阅读(331)  评论(0)    收藏  举报