我有的Dll文件,其附带的说明中有VB的声明如下:
Declare Function W_711B_AD_Aquire Lib "711B.dll" (ad_data As Long) As Long
我用Delphi写时应如何声明,调用呢?
我也试过用指针传递但不成功,希望能给出源码,谢谢!
Declare Function W_711B_AD_Aquire Lib "711B.dll" (ad_data As Long) As Long
我用Delphi写时应如何声明,调用呢?
我也试过用指针传递但不成功,希望能给出源码,谢谢!
或者
function W_711B_AD_Aquire(var ad_data:LongInt):LongInt;external '711B.dll'呵呵,对VB的API调用有点不大熟
var
hInst:THandle;
DllInterface:TDllInterface;
begin
hInst:=LoadLibrary(PChar(DllPath));
try
@DllInterface:=GetProcAddress(HInst,'输出函数名称');
DllInterface(Form_Main.Handle);
finally
FreeLibrary(HInst);
end;
end;这个是我写的一个DLL调用的函数,你自己看看改一下应该没问题了