AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Suchfunktion Ergebnis der Suchanfrage

Ergebnis der Suchanfrage


Datum des Suchindex: Heute, 16:02

Parameter dieser Suchanfrage:

Suche in Thema: find hex codes in files
Suche alle Beiträge, die von "scp" geschrieben wurden
• Suchmethode: "Suche nach allen Begriffen"
• Nach Datum (firstpost) sortiert
• Zeige Treffer als Beiträge
Zeige 4 von insges. 4 Treffern
Suche benötigte 0.003s

Es liegen Ergebnisse in folgenden Bereichen vor:

  • Forum: Programmieren allgemein

    Re: find hex codes in files

     
      by scp, 24. Jul 2004
    My example was especially for the case you described: You said, yo don't know if there are more than 3 spaces.

    To your question:

    Buffer: array of char;
    buffer2: array of char;


    After writing to the buffer, you should use
  • Forum: Programmieren allgemein

    Re: find hex codes in files

     
      by scp, 24. Jul 2004
    You can search for 'AddD ' (If it has not less but more than 3 spaces) then you should read the data into a buffer and find out the postion of the version number if you compare the chars until it is <> ' '.


    ThePos := FindInFile('D:\_ftest.txt', 'AddD ', true);
    fs := TFileStream.Create;
    try
    fs.Seek(ThePos + length('AddD '), soFromBeginning);
    fs.ReadBuffer(Buffer,...
  • Forum: Programmieren allgemein

    Re: find hex codes in files

     
      by scp, 24. Jul 2004
    Idx begins with value 1.
    So if all Chars are matched Idx has a value of Length(SearchWord)+1
    Declare the If-Statement like this:


    if (idx = Length(SearchWord)+1) then
    begin
  • Forum: Programmieren allgemein

    Re: find hex codes in files

     
      by scp, 24. Jul 2004
    It should be shl 4 not shr 4


URL zu dieser Suchanfrage:

https://www.delphipraxis.net/dp_search.php?do=usersearch&search_username=scp&search_exact_username=1&search_sortby=dateline&search_resulttype=post&search_matchmode=0&searchthreadid=26436
Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 16:10 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