Autor Beitrag
DnC
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 98

XP
Delphi 3,6,7,2005 PE
BeitragVerfasst: So 06.05.07 19:21 
Wahrscheinlich bin ich nur zu blöd, das zu finden :? , aber:
Was bedeutet MAX_PATH :?:

(Allgemein und in keinem Zusammenhang.)
Dezipaitor
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 220



BeitragVerfasst: So 06.05.07 19:24 
die MSDN sagt dazu etwas aus.
DnC Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 98

XP
Delphi 3,6,7,2005 PE
BeitragVerfasst: So 06.05.07 19:27 
thx, nächstes Mal such ich auch noch in der MSDN :idea:
aber warum ist MAX_PATH gerade 260 und nicht 256 oder 255 oder sowas?
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: So 06.05.07 19:38 
user profile iconDnC hat folgendes geschrieben:

aber warum ist MAX_PATH gerade 260 und nicht 256 oder 255 oder sowas?
Du solltest dann im MSDN auch lesen ;-)

Zitat:
Maximum Path Length

In the Windows API, the maximum length for a path is MAX_PATH, which is defined as 260 characters. A path is structured in the following order: drive letter, colon, backslash, components separated by backslashes, and a null-terminating character, for example, the maximum path on the D drive is D:\<256 chars>NUL.

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
Dezipaitor
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 220



BeitragVerfasst: So 06.05.07 19:40 
260 ist einfach so definiert.

Die Win32 Unicode Funktionen können jedoch auch größere Pfade bis zu 32000 Zeichen benutzen,
wenn man vor den Pfad noch "\\?\" setzt.