取.dll文件里的函数的地址;

  g_hm= ::LoadLibrary("E:\\GC\\bin\\x86\\Debug\\ssn7\\Braille.dll");
 if(!g_hm)
 {
  return FALSE;
 }
 _InitialHMDB = (_lpInitialHMDB)::GetProcAddress(g_hm,"InitialHMDB");
 if(!_InitialHMDB)
 {
  return FALSE;
 }
 _CloseHMDB = (_lpCloseHMDB)::GetProcAddress(g_hm,"CloseHMDB");
 if(!_CloseHMDB)
 {
  return FALSE;
 }
 _HMTransFunDZ = (_lpHMTransFunDZ)::GetProcAddress(g_hm,"HMTransFunDZ");
 if(!_HMTransFunDZ)
 {
  return FALSE;
 }
 _HMTransDZHY = (_lpHMTransDZHY)::GetProcAddress(g_hm,"HMTransDZHY");
 if(!_HMTransDZHY)
 {
  return FALSE;
 }

 

GetProcAddress (
    __in HMODULE hModule,
    __in LPCSTR lpProcName
    );

 

 

你可能感兴趣的:(取.dll文件里的函数的地址;)