Autor Beitrag
Gahero
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 193

Win Vista HP 64bit
Delphi 2007 Pro
BeitragVerfasst: Mo 18.09.06 16:14 
Hi,
ich brauche mal eure Hilfe, ich hab ein Programm geschrieben und will nun ein paar Werte von Checkboxen und Editfeldern speichern (in einer ini-Datei). Damit hab ich auch keine Probleme.
Aber man muss ja beim erstellen der Ini den Pfad angeben (war bei mir jedenfalls so) und das hab ich jetzt einfach mit "C:\dateiname.ini gemacht. Aber was ist denn jetzt wenn der User keine Festplatte "C" hat?
Kann man da was machen?
Danniolo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 693



BeitragVerfasst: Mo 18.09.06 16:17 
Moin,

könntest dir ja mal das hier angucken, ich denk ma das is ganz hilfreich bei deinem Problem^^
Timosch
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1314

Debian Squeeze, Win 7 Prof.
D7 Pers
BeitragVerfasst: Mo 18.09.06 16:18 
Man speichert nicht einfach Dateien unter C:\. Dafür benützt man das Anwendungsdaten-Verzeichnis. Kann man mit ner Win32-API-Funktion abfragen. Ich weiß sie grad nicht auswendig, weil ich dazu immer die TSystemInfo-Komponente aus der JEDI-VCL nehme.
//EDIT: Da war wohl jemand schneller als ich. Unter dem obigen Link steht die Funktion.

_________________
If liberty means anything at all, it means the right to tell people what they do not want to hear. - George Orwell