X xxhsh Unregistered / Unconfirmed GUEST, unregistred user! 2001-11-06 #1 请问下面的的函数如何从dll中调用???<br>BOOL WINAPI Login_R(LPCTSTR SystemID, LPCTSTR Password); <br>在我的delphi程序中该如何申明这个dll中的函数????????
请问下面的的函数如何从dll中调用???<br>BOOL WINAPI Login_R(LPCTSTR SystemID, LPCTSTR Password); <br>在我的delphi程序中该如何申明这个dll中的函数????????
A angshuangxi Unregistered / Unconfirmed GUEST, unregistred user! 2001-11-06 #3 var<br> Login_R: function(SystemIDChar; Password: PChar );<br>DllInstance : THandle ;<br>begin<br> DllInstance := LoadLibrary(PChar(dll路径)) ;<br> try<br> @Login_R := GetProcAddress(DllInstance,'Login_R') ;<br> Login_R(PChar(变量1), PChar(变量2));<br> except<br> end;<br> FreeLibrary(DllInstance) ;<br><br>end;<br>
var<br> Login_R: function(SystemIDChar; Password: PChar );<br>DllInstance : THandle ;<br>begin<br> DllInstance := LoadLibrary(PChar(dll路径)) ;<br> try<br> @Login_R := GetProcAddress(DllInstance,'Login_R') ;<br> Login_R(PChar(变量1), PChar(变量2));<br> except<br> end;<br> FreeLibrary(DllInstance) ;<br><br>end;<br>