Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi StrToInt('2684354560') -> '2684354560' ist kein gültiger Int (https://www.delphipraxis.net/84892-strtoint-2684354560-2684354560-ist-kein-gueltiger-int.html)

hirnstroem 24. Jan 2007 06:01

Re: StrToInt('2684354560') -> '2684354560' ist kein gülti
 
Entschuldigt bitte, aber als ich nach dem Posten des Beitrags gemerkt habe, weshalb diese Umwandlung nicht funktionieren kann war der Beitrag - zumindest für mich - überflüssig. Das meiste steht im Titel. Der Ursprüngliche Beitrag lässt sich nicht mehr editieren. Quellcode gibt es trotzdem noch ein Paar Zeilen (so dürfte es gestern in etwa ausgesehen haben):

Delphi-Quellcode:
function TCANCommunication.CheckIfAnswerAvailable(OutputString: string): Boolean;
var
  AnswerCommand, AnswerUserID, AnswerAddress, RequestCommand, RequestUserID,
  RequestAddress, ts: String; // Request = Output
  i, ti: Integer;
begin
  csInputBuffer.Acquire; // to avoid multiple function calls (access violation)

  RequestCommand :=
    IntToHex(HexStrToInt(Copy(OutputString, 10, 2)) + 1, 2);

  RequestUserID := // xxx 00000 xxx xxxxxxxxx xxxxxxxxx and 000 11111 000 000000000 00000 shr 21
   IntToStr(StrToInt(x2y(16, 10, Copy(OutputString, 1, 8))) and 65011712 shr 21); // <- 1. Stelle, welche Probleme machen konnte

  RequestAddress := // xxx xxxxx xxx xxxxxxxxx 000000000 and 000 00000 000 000000000 111111111
    IntToStr(StrToInt(x2y(16, 10, Copy(OutputString, 1, 8))) and 511); // <- hier nochmal
Aber die quinta essentia war schon
Delphi-Quellcode:
StrToInt('2684354560')
Grüsse
hirnstroem


Alle Zeitangaben in WEZ +1. Es ist jetzt 02:39 Uhr.
Seite 2 von 2     12   

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