摘要:
1 #include "stdafx.h" 2 typedef int (*PFUN)(int,int);//定义函数指针 3 void main() 4 { 5 HMODULE hModule = ::LoadLibrary("dlltest.dll");//加载dll模块 6 PFUN newfun = (PFUN)::GetProcAddress(hModule,"fun");//函数映射,newfun->fun 7 int i = newfun(1,2); 8 printf("The result is %d\ 阅读全文
posted @ 2012-02-10 14:02
maadiah
阅读(452)
评论(0)
推荐(0)

浙公网安备 33010602011771号