#include <WINDOWS.H> #include <WINBASE.H>typedef void (*MYPROC)(char*); void main(){HINSTANCE LibHandle;MYPROC ProcAdd; char sysbuf[] = "GetNum"; /*過程名*/LibHandle = LoadLibrary("GetNum.dll"); /*載入dll*/ ProcAdd = (MYPROC)GetProcAddress( LibHandle, sysbuf); /*獲取函數(shù)sysbuf的地址*/}
我有一個dll文件叫GetNum.dll,里面有個命令GetNum,怎樣輸出這個命令的結(jié)果?
米脂
2023-03-18 14:10:28