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");
时间: 2024-10-10 18:11:06
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");