Autor Beitrag
Popov
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1655
Erhaltene Danke: 13

WinXP Prof.
Bei Kleinigkeiten D3Pro, bei größeren Sachen D6Pro oder D7
BeitragVerfasst: Mi 12.03.03 23:17 
Mit DiskSize kriege ich falsche Werte. Der macht bei 2 GigaByte schluß.

Kennt einer was besseres?

_________________
Popov
torstenheinze
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 461



BeitragVerfasst: Mi 12.03.03 23:20 
weiß net, ob du aufkomponenten stehst, aber x2000 kanndat.
torstenheinze
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 461



BeitragVerfasst: Mi 12.03.03 23:22 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
procedure TForm1.Button1Click(Sender: TObject);
var freeCaller, total: Int64;
begin
  GetDiskFreeSpaceEx('C:\', freeCaller, total, nil);
  label1.caption:='Freier Speicher: '+IntToStr(freeCaller)+' Bytes';
  label2.caption:='Gesamter Speicher: '+IntToStr(total)+' Bytes';
end;

bei mir geht das für mehr als2GB

Moderiert von user profile iconTino: Code- durch Delphi-Tags ersetzt.
DeCodeGuru
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1333
Erhaltene Danke: 1

Arch Linux
Eclipse
BeitragVerfasst: Mi 12.03.03 23:31 
Zitat:
Mit DiskSize kriege ich falsche Werte. Der macht bei 2 GigaByte schluß.


Was? Also bei mir zeigt der eine Partitionsgröße von 20 GB an. :? :)

_________________
Viele Grüße
Jakob
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 12.03.03 23:52 
So weit ich weiß, kennt D3 noch kein Int64, das wird Popov's Problem sein. Hat mich früher auch immer geärgert.