Autor Beitrag
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Do 13.02.03 14:29 
Gibt es einen Variablentype mit einem größeren Buffer als string?
maximus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 896

Win XP, Suse 8.1
Delphi 4/7/8 alles prof
BeitragVerfasst: Do 13.02.03 14:42 
longstring! :D ich glaub bis 4 gig!?


Zuletzt bearbeitet von maximus am Do 13.02.03 14:45, insgesamt 1-mal bearbeitet
Moritz M. Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Do 13.02.03 14:44 
geht nicht...da muss doch was zu uses, oder?
Udontknow
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2596

Win7
D2006 WIN32, .NET (C#)
BeitragVerfasst: Do 13.02.03 14:48 
Hi!

Wie wärs denn einfach mit einem generischen Speicherbereich, den du mit Getmem alloziierst und mit Freemem wieder freigibst?

Cu, :)
Udontknow
maximus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 896

Win XP, Suse 8.1
Delphi 4/7/8 alles prof
BeitragVerfasst: Do 13.02.03 14:49 
Uuups! ich meinte natürlich:

WideString ~2^30 characters 4 bytes to 2GB Unicode characters
Udontknow
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2596

Win7
D2006 WIN32, .NET (C#)
BeitragVerfasst: Do 13.02.03 14:57 
Aber der normale Ansistring (=String) kann doch sogar doppelt so groß sein (von der Zeichenanzahl). Der maximale Speicherplatz ist gleich.

Aber muss es denn wirklich ein String sein? Wieso nicht einfach, wie schon erwähnt, ein Pointer auf einen reservierten Speicherbereich?

Cu,
Udontknow