动态链接库动态加载

0.typedef void (*FortFun1)(int *ii);

1. HINSTANCE hDll;

    FortFun1 fun1;

2. hDll=LoadLibrary("abc.dll");

    if (hDll==NULL) error ..

3.fun=(FortFun1*)GetProcAddress(hDll1,"calcpp");

4.fun(&ii);

5.FreeLibrary(hDll);

posted on 2015-11-09 20:52  reedlau  阅读(164)  评论(0编辑  收藏  举报

导航