G
gbyahoo
Unregistered / Unconfirmed
GUEST, unregistred user!
function MakeCode(CodeMsg, SaveTo: pChar): pChar;stdCall;
var Data: TStringList;
TemppChar: pChar;
begin
if CodeMsg = nil then
begin
exit;
Result := '1001';
end
else
begin
try
Data := TStringList.Create();
Data.Text := CodeMsg;
Data.SaveToFile('Data.txt');
Data.Free;
DeleteFile('Data.txt');
Result := pChar('ok');
except
Result := '1002';
DeleteFile('Data.txt');
end;
end;
var Data: TStringList;
TemppChar: pChar;
begin
if CodeMsg = nil then
begin
exit;
Result := '1001';
end
else
begin
try
Data := TStringList.Create();
Data.Text := CodeMsg;
Data.SaveToFile('Data.txt');
Data.Free;
DeleteFile('Data.txt');
Result := pChar('ok');
except
Result := '1002';
DeleteFile('Data.txt');
end;
end;