怎么通过函数名直接调用自己的win32DLL里的函数
做了一个win32DLL,想调用里面的函数:void func()
看网上一般都是建一个win32 console的工程,然后类似下面这样通过win32的宏用函数指针调用:
int _tmain(int argc, _TCHAR* argv[]){ HINSTANCE hDllInst; typedef void(Pfunc)(); hDllInst=LoadLibrary(L"func.dll"); if(NULL == hDllInst) { cout << "加载dll失败" << endl; } ...}