I
islet8
Unregistered / Unconfirmed
GUEST, unregistred user!
错误信息:Project iTEXT.exe raised esception class EInOutError with message 'I/O error 103'
Process stopped.Use Step or Run to continue.
源码:
procedure TFormContact.OKBtnClick(Sender: TObject);
var
f:textfile;
s,fn:string;
i:integer;
Reg: TRegistry;
begin
fn:=ExpandFileName('Config.dat');
assignfile(f,fn);
reset(f);
for i:=1 to 3 do
readln(f);
if FastInPopup.checked=true then
begin
s:='0';
writeln(f,s)
//←软件运行到这儿出错!
try
Reg:=TRegistry.Create;
try
Reg.RootKey:=HKEY_CLASSES_ROOT;
Reg.OpenKey('*/Shell/iTEXT',True);
Reg.WriteString('','用iTEXT打开');
Reg.CloseKey;
Reg.OpenKey('*/Shell/iTEXT/Command',True);
Reg.WriteString('','"'+ParamStr(0)+'" "%1"');
Reg.CloseKey;
finally
Reg.Free;
end;
except
end;
end;
closefile(f);
close;
end;
Process stopped.Use Step or Run to continue.
源码:
procedure TFormContact.OKBtnClick(Sender: TObject);
var
f:textfile;
s,fn:string;
i:integer;
Reg: TRegistry;
begin
fn:=ExpandFileName('Config.dat');
assignfile(f,fn);
reset(f);
for i:=1 to 3 do
readln(f);
if FastInPopup.checked=true then
begin
s:='0';
writeln(f,s)
//←软件运行到这儿出错!
try
Reg:=TRegistry.Create;
try
Reg.RootKey:=HKEY_CLASSES_ROOT;
Reg.OpenKey('*/Shell/iTEXT',True);
Reg.WriteString('','用iTEXT打开');
Reg.CloseKey;
Reg.OpenKey('*/Shell/iTEXT/Command',True);
Reg.WriteString('','"'+ParamStr(0)+'" "%1"');
Reg.CloseKey;
finally
Reg.Free;
end;
except
end;
end;
closefile(f);
close;
end;