我现在有一个做好的HT2800HandDll.dll动态链接库,我要用其中两个函数
1.function WriteHandFile(exepath:string;Port,speed:integer):boolean;
2.function readHandFile(exepath:string;Port,speed:integer):boolean;
请问我现在在Delphi中调用此动态链接库中的两个函数。是不是这样。
在interface部分:
function WriteHandFile(exepath:string;Port,speed:integer):boolean;stdcall;
function readHandFile(exepath:string;Port,speed:integer):boolean;stdcall;
在implementation部分:
function writeHandFile;external 'HT2800HandDll.dll' name 'writeHandFile';
function readHandFile;external 'HT2800HandDll.dll' name 'readHandFile';请问我这样做了以后是不是可以在我的程序中直接调用这两个函数了。
如果有错误的地方请给我指出,谢谢。急,急,急,急,急!