Einzelnen Beitrag anzeigen

nat

Registriert seit: 10. Nov 2005
216 Beiträge
 
RAD-Studio 2009 Pro
 
#8

Re: Einlesen von Integer / Float aus ini Files Probleme

  Alt 8. Jun 2009, 18:48
Zitat von DeddyH:
Nein, das bedeutet, dass sie im aktuellen Verzeichnis gesucht wird.
das stimmt nicht. denn, wenn man sich TIniFile mal anguckt, benutzt es intern
GetPrivateProfileString/WritePrivateProfileString und die hilfe sagt hierzu ganz klar:
Zitat:
If the lpFileName parameter does not contain a full path and filename for the file, WritePrivateProfileString searches the Windows directory for the file. If the file does not exist, this function creates the file in the Windows directory.
bzw
Zitat:
lpFileName

Pointer to a null-terminated string that names the initialization file. If this parameter does not contain a full path to the file, Windows searches for the file in the Windows directory.
  Mit Zitat antworten Zitat