B
bluenats
Unregistered / Unconfirmed
GUEST, unregistred user!
begin
theHandle:=LoadLibrary('C:/Samples/S9_1/DLL2/Project2.dll');
if theHandle <> 0 then
begin
@MultiplyNum := GetProcAddress(theHandle,'MultiplyNum');
if (@MultiplyNum) <> nil then
begin
TMultiplyNum(MultiplyNum); //这一句话中声明为TMultiplyNum=procedure
FreeLibrary(theHandle); //过程变量究竟该如何使用,上面一句是什么意思?
end;
end
else
MessageBox(0,'指定的动态链接库可能不存在' , '信息',MB_OK+MB_ICONWARNING);
theHandle:=LoadLibrary('C:/Samples/S9_1/DLL2/Project2.dll');
if theHandle <> 0 then
begin
@MultiplyNum := GetProcAddress(theHandle,'MultiplyNum');
if (@MultiplyNum) <> nil then
begin
TMultiplyNum(MultiplyNum); //这一句话中声明为TMultiplyNum=procedure
FreeLibrary(theHandle); //过程变量究竟该如何使用,上面一句是什么意思?
end;
end
else
MessageBox(0,'指定的动态链接库可能不存在' , '信息',MB_OK+MB_ICONWARNING);