P
players
Unregistered / Unconfirmed
GUEST, unregistred user!
代码:
LibHandle:=LoadLibrary('Fun.Dll');<br> Try<br> if LibHandle=0 then<br> begin<br> showmessage('不能加载Dll');<br> Exit;<br> end;<br> @GetDateStr:=GetProcAddress(LibHandle,'GetDateStr');<br> if not(@GetDateStr=nil) then<br> begin<br> Label1.Caption:=GetDateStr(Date);<br> label1.Refresh;<br> end<br> else<br> RaiseLastWin32Error;<br> finally<br> FreeLibrary(LibHandle);<br> end;