标签:dll
LoadLibrary的头文件是#include <Windows.h>
假设要调用dll中的函数原型是 int func(int a,char *);
HMODULE dll;
dll = LoadLibrary("dll的路径名");
int (*func)(int,char *);
func = (int(*)(int,char *))GetProcAddress(dll,"func");
动态调用dll
原文地址:http://kinghero.blog.51cto.com/10493576/1689729