在C#中动态调用native dll的导出函数(2) huser32 = LoadLibrary("user32.dll"); MsgBox mymsg = (MsgBox)GetAddress(huser32, "MessageBoxA", typeof(MsgBox)); mymsg(this.Handle.ToInt32(), txtmsg.Text, txttitle.Text , 64); FreeLibrary(huser32); }
链接地址: http://rick.cnblogs.com/archive/2006/07/13/apicall.html