调用C++编写的dll的问题
有一个VC的DLL,函数说明如下:
BOOLEAN Tuc_EnumTouchScreen(
OUT PCHAR *paths,
OUT INT &count
);
paths
[out]设备路径数组。
Handle
[out]设备个数。
========================
C++调用范例:
INT deviceCount = 0;
PUCHAR devicePaths[64] = {0};
for (int i=0; i<64; i++)
{
devicePaths[i] = new char[256];
ZeroMemory(devicePaths[i],256);
}
Tuc_EnumTouchScreen(devicePaths, deviceCount);
在DELPHI中,应该如何声明?
我现在是这样声明:
function Tuc_EnumTouchScreen(out paths:PChar;out Handle:Integer):Boolean;stdcall; external 'TucLib.dll' name 'Tuc_EnumTouchScreen';
调用是这样:
procedure TForm1.Button1Click(Sender: TObject);
var
I,count:Integer;
paths: array[0..63] of PChar;
begin
for I := 0 to 63 do
begin
paths[I] := StrAlloc(256);
end;
Tuc_EnumTouchScreen(paths[0],count);
end;
运行提示,无法定位dll程序输入点,请问高手,应该如何声明和调用。