Thema: Delphi Inifile Problem

Einzelnen Beitrag anzeigen

Benutzerbild von Sir Rufo
Sir Rufo

Registriert seit: 5. Jan 2005
Ort: Stadthagen
9.454 Beiträge
 
Delphi 10 Seattle Enterprise
 
#22

AW: Inifile Problem

  Alt 6. Mär 2015, 12:58
@Medium

Du nimmst falsch an, denn in dem Quelltext vom TE steht
Delphi-Quellcode:
function GetApplicationDirectory: string;
begin
  GetApplicationDirectory := ExtractFilePath(ParamStr(0));
end;
Also wird dort etwas in der Art zurückgeliefert
Code:
C:\Foo\Blup\App\
Jetzt wird dort der Name angehängt
Delphi-Quellcode:
  dir:=GetApplicationDirectory + n;
  Ini:=TIniFile.Create( dir + '\' + n + '.ini' );
und wir erhalten
Code:
n => 'bmifoo'

dir => 'C:\Foo\Blup\App\bmifoo'
inifile => 'C:\Foo\Blup\App\bmifoo\bmifoo.ini'
Kaum macht man's richtig - schon funktioniert's
Zertifikat: Sir Rufo (Fingerprint: ‎ea 0a 4c 14 0d b6 3a a4 c1 c5 b9 dc 90 9d f0 e9 de 13 da 60)
  Mit Zitat antworten Zitat