Autor Beitrag
DelphiMan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 73



BeitragVerfasst: So 28.09.03 12:18 
Hallo zusammen!
Wie kann ich eine INI Datei erstellen, die sich NUR im Speicher befindet und keine Datei anlegt? Das würde ja auch noch mit dem TMemIniFile Objekt gehen, das Problem: Diese virtuelle INI Datei müsste Streamfähig sein, sodass ich den Inhalt einer existierenden INI-DATEI per STREAM in die virtuelle INI schreiben kann und dann mit dieser arbeiten kann. Die Methode CopyFrom existiert beim TMemIniFile ja nicht.
Über schnelle Hilfe würde ich mich freuen!

MfG
DelphiMan
bIce
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 55



BeitragVerfasst: Do 02.10.03 19:34 
Im einfachsten Fall muss die Klasse eine TList (Einträge der Sections) TStringList's (Key=Value Einträge) enthalten. Das Parsen der Streams musst Du dann selbst implementieren.
obbschtkuche
Gast
Erhaltene Danke: 1



BeitragVerfasst: Do 02.10.03 19:36 
TMemIniFile sollte das sein was du suchst.
bIce
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 55



BeitragVerfasst: Do 02.10.03 20:02 
Sorry, ich dachte dass es diese Klasse nicht gibt.
DelphiMan Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 73



BeitragVerfasst: Do 02.10.03 21:00 
Titel: s. Frage
Das hab ich auch schon gefunden wenn ihr mal in meine beschreibung seht. Da gibt es halt das Problem, s. Beschreibung.
obbschtkuche
Gast
Erhaltene Danke: 1



BeitragVerfasst: Fr 03.10.03 12:16 
oh, hab ich übersehen...
Ich guck mal grad.

ausblenden Delphi-Quelltext
1:
memini.SetStrings(List: TStrings);					


dann lädst du per list.loadfromstream() eine Datei und speicherst sie dann mit setstrings in der inidatei.
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Fr 03.10.03 19:36 
hmmm... aber was bringt denn dann die eigenschaft filname. was enthält die denn, wenn du die ini datei nur im speicher hast, und die von nirgends geladen hast.

_________________
In the beginning was the word.
And the word was content-type: text/plain.
obbschtkuche
Gast
Erhaltene Danke: 1



BeitragVerfasst: Fr 03.10.03 20:06 
wenn du da was angibst, wird die datei geladen, sonst nicht.
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Fr 03.10.03 21:30 
achso ok danke

_________________
In the beginning was the word.
And the word was content-type: text/plain.
DelphiMan Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 73



BeitragVerfasst: Di 07.10.03 10:07 
Titel: ...
also danke für die Aufmerksamkeit!