江
江湖路
Unregistered / Unconfirmed
GUEST, unregistred user!
那位仁兄帮帮忙吧 调用时总是出现"Invalid Pointer operation"错误.不知为何???
代码如下:
{+++++++++++++++++DLL部分++++++++++++++}
type{ TODO : 自定义返回数据类型 }
TXMLDataList = Record
List : array of Tstringlist;
FormatString : Widestring;
Count : Integer;
Error : Widestring;
ErrorIndex : integer;
end;
Function MakeString(Passport: widestring; ValueList: TStringlist):TXMLDataList ; stdcall;
var
NodeList : TXMLDataList;
begin
NodeList.FormatString:=ValueList.Strings[0];
Result:=NodeList;
end;
{++++++++++++++++实现部分++++++++++++++++++}
Function Make_FormatString(TableName,Passport: widestring; ValueList: TStringlist):TXMLDataList ; stdcall;
external 'XML.dll';
procedure TForm1.Button3Click(Sender: TObject);
var
i : TXMLDataList;
begin
i:=MakeString('',Tstringlist(ListBox1.items));
end;
代码如下:
{+++++++++++++++++DLL部分++++++++++++++}
type{ TODO : 自定义返回数据类型 }
TXMLDataList = Record
List : array of Tstringlist;
FormatString : Widestring;
Count : Integer;
Error : Widestring;
ErrorIndex : integer;
end;
Function MakeString(Passport: widestring; ValueList: TStringlist):TXMLDataList ; stdcall;
var
NodeList : TXMLDataList;
begin
NodeList.FormatString:=ValueList.Strings[0];
Result:=NodeList;
end;
{++++++++++++++++实现部分++++++++++++++++++}
Function Make_FormatString(TableName,Passport: widestring; ValueList: TStringlist):TXMLDataList ; stdcall;
external 'XML.dll';
procedure TForm1.Button3Click(Sender: TObject);
var
i : TXMLDataList;
begin
i:=MakeString('',Tstringlist(ListBox1.items));
end;