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

来源:互联网 发布:用itunes安装软件 编辑:程序博客网 时间:2024/04/30 10:37

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

 

 

原创粉丝点击