Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi Ungültige Typenumwandlung (https://www.delphipraxis.net/5242-ungueltige-typenumwandlung.html)

Basic-Master 29. Mai 2003 10:42


Ungültige Typenumwandlung
 
Hi,
ich hab diesen Code:
Delphi-Quellcode:
var Count0, Count1:int64;
    howlong:double;
Begin
QueryPerformanceCounter(count0);
Repeat;
    QueryPerformanceCounter(count1);
    howlong := double((count1 - count0) div frequency); //hier kommt n fehler
    application.processmessages;
Until howlong > 0.00005
wie muss man das umwandeln?

Christian Seehase 29. Mai 2003 10:48

Moin Basic-Master,

lass einfach mal das Double(...) weg.

[EDIT]
Ausserdem solltest Du lieber / statt div Verwenden.
[/EDIT]


Alle Zeitangaben in WEZ +1. Es ist jetzt 10:01 Uhr.

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