在DELPHI中如何加入动态连接库 .DLL函数。(10分)

  • 主题发起人 主题发起人 newsea008
  • 开始时间 开始时间
N

newsea008

Unregistered / Unconfirmed
GUEST, unregistred user!
代码:
[?]
 
function FunctionName; &nbsp;stdcall;external 'c:/windows/system/theDLL.DLL';<br>
 
在申明函数的地方,引用:<br>function funName(vParam: string) : Integer;stdcall; external 'DLLNAME.DLL';<br>就可以了<br>
 
function Min(x,y:integer):integer;stdcall; external '动态连接库路经/.dll'
 
要把编写的动态连接库放在哪?不好意思再问一下。<br>
 
放在程序运行的目录下,<br><br>然后用 Function Myfun(S:string):integer; stdcall; external 'mydll.dll';<br>这么调用就可以了
 
多人接受答案了。
 
后退
顶部