![]() |
Brauche Hilfe beim Umrechnen von INt64 Wert
Hallo, welchem Variablentyp entspricht S64? Int64?
|
Re: Variablentypen?
Was und woher kommt denn dein S64, C ?
Wie Schaut dort die Definition aus ? |
Re: Variablentypen?
aus dem Flight Simulator von Microsoft bzw der FSUIPC...
Var Type = S64 Size = 8 comment = #*360/(65536*65536*65536*65536)) |
Re: Variablentypen?
size = 8 klingt schonmal nach 64 Bit
Aufgrund von /(65536*65536*65536*65536) (wer ist bloß auf diese komische Idee gekommen?) würde ich eher zu UInt64 tendieren |
Re: Variablentypen?
s ich habe nochmal ne erklärung gefunden...
Zitat:
Delphi-Quellcode:
procedure TForm1.Button2Click(Sender: TObject);
var dwresult : dword; Longitude : int64; wert : int64; Latitude : int64; lat : extended; temp : string; begin FSUIPC_Open(SIM_ANY, dwResult) ; if FSUIPC_Read($0568, 3, @wert, dwResult) then if FSUIPC_Process(dwResult) then begin wert := wert * 360; showmessage(floattostr( (wert/ 65536 / 65536 / 65536 /65536))); end; end; |
Alle Zeitangaben in WEZ +1. Es ist jetzt 03:31 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz