都用什么API?

解决方案 »

  1.   

    API是
    HANDLE hModule = GetModuleHandle(NULL);
      

  2.   

    HINSTANCE h = LoadLiabary( path);只要有HINSTANCE ,到处都可以调用dll啊
      

  3.   

    应该用API,GetModuleHandle(NULL);
      

  4.   

    Res
    AfxGetInstanceHandle always returns the HINSTANCE of your executable file (.EXE) unless it is called from within a DLL linked with the USRDLL version of MFC. In this case, it returns an HINSTANCE to the DLL.看来,还是API稳妥。不过估计结果差不多。