**帮忙解释一下这个delphi过程
procedureTFrmMsComm.FormCreate(Sender:TObject);varTempIniFile:TInifile;FileName,TempD...
procedure TFrmMsComm.FormCreate(Sender: TObject);
var
TempIniFile:TInifile;
FileName,TempDir1,TempDir2:string;
i,Len:integer;
begin
Len:=0;
TempDir1:=GetAppPath;
for i:=Length(TempDir1) Downto 1 do
begin
if TempDir1[i]='\' then
begin
Len:=i;
Break;
end;
end;
TempDir2:=TempDir1+'\DDl';
if not DirectoryExists(TempDir2) then
CreateDir(TempDir2);
FileName:=TempDir2+'\DCPconfig.ini';
TempIniFile:=TInifile.Create(FileName);
W_5375_Initial(0,$379,-1);
{ CheckPrn:=TCheckPrn.Create(True);
CheckPrn.Priority :=tpLower;
CheckPrn.Resume;
} 展开
var
TempIniFile:TInifile;
FileName,TempDir1,TempDir2:string;
i,Len:integer;
begin
Len:=0;
TempDir1:=GetAppPath;
for i:=Length(TempDir1) Downto 1 do
begin
if TempDir1[i]='\' then
begin
Len:=i;
Break;
end;
end;
TempDir2:=TempDir1+'\DDl';
if not DirectoryExists(TempDir2) then
CreateDir(TempDir2);
FileName:=TempDir2+'\DCPconfig.ini';
TempIniFile:=TInifile.Create(FileName);
W_5375_Initial(0,$379,-1);
{ CheckPrn:=TCheckPrn.Create(True);
CheckPrn.Priority :=tpLower;
CheckPrn.Resume;
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询