cn8610000
Student_2017
2017-03-04 07:25

MFC C++ 有关接口调用函数的几个问题

3
  • c++
  • mfc
希望能够一句一句的解释,谢谢各位大神了。
HMODULE hDll =( HMODULE )LoadLibrary( "COMObj.dll" );
MYCREATEINSTANCE MyCreate = (
    MYCREATEINSTANCE )GetProcAddress( hDll,"MyCreateInstance" );
IUnknown * piUnknown = MyCreate();
IMath * piMath = NULL;
piUnknown->QueryInterface(IID_IMath,(LPVOID*)&piMath);
piUnknown->Release();
return piMath;
  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

4条回答