您的位置:首页 > 编程语言 > Delphi

delphi中调用外部dll导出函数

2010-06-26 12:00 351 查看
procedure test(i:int);
Type
T_test=Procedure (i:int) ;cdecl;
var
hModule1: HMODULE ;
_test:T_test;
begin
hModule1:= GetModuleHandle('test.dll') ;
@_test:= GetProcAddress(hModule1,'_test_');
_test(2) ;
end;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: