Delphi-PRAXiS
Seite 3 von 3     123   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Software-Projekte der Mitglieder (https://www.delphipraxis.net/26-software-projekte-der-mitglieder/)
-   -   Ini ohne IniFiles Project (WinApi) (https://www.delphipraxis.net/205319-ini-ohne-inifiles-project-winapi.html)

Delphi-Laie 30. Aug 2020 23:41

AW: Ini ohne IniFiles Project (WinApi)
 
Zitat:

Zitat von TiGü (Beitrag 1472452)
Wenn ich sowas haben wollen würde, warum kopiere ich mir dann nicht einfach die TCustomIniFile und TIniFile aus der Unit System.IniFiles und bin fertig?

Weil es - bei Veröffentlichung - mit dem Urheberrecht kollidiert?!

KodeZwerg 31. Aug 2020 07:42

AW: Ini ohne IniFiles Project (WinApi)
 
Update am Code vorgenommen.

Mfg

KodeZwerg 31. Aug 2020 07:54

AW: Ini ohne IniFiles Project (WinApi)
 
Zitat:

Zitat von himitsu (Beitrag 1472461)
Delphi-Quellcode:
    class function Create(const FileName: string): TkzIni; static;

Das habe ich krampfhaft versucht einzubauen, leider ohne Erfolg, ich hoffe 'ne property reicht dafür auch aus :)
Der jammerte immer das ich keinen Zugriff auf meine FFileName variable habe.

himitsu 31. Aug 2020 08:40

AW: Ini ohne IniFiles Project (WinApi)
 
Klar, geht auch.

Und ups, hast natürlich auf Self.FFileName keinen Zugruff, denn Self gibt es hier nicht.
aber
Delphi-Quellcode:
Result.FFileName := FileName;
. :lol:

KodeZwerg 31. Aug 2020 10:33

AW: Ini ohne IniFiles Project (WinApi)
 
Ach menno, da wäre jeder gute Delphi Entwickler drauf gekommen, sieht man mal wieder wie schlecht ich bin :)
(nur so lerne ich, Danke!)

KodeZwerg 2. Sep 2020 10:51

AW: Ini ohne IniFiles Project (WinApi)
 
Refactored Version im Post #1.


Alle Zeitangaben in WEZ +1. Es ist jetzt 00:16 Uhr.
Seite 3 von 3     123   

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz