AGB  ·  Datenschutz  ·  Impressum  







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

Ergebnis der Suchanfrage


Datum des Suchindex: Heute, 15:17

Parameter dieser Suchanfrage:

Suche in Thema: $0 in stream and loading as text
Suche alle Beiträge, die von "WojTec" 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.002s

Es liegen Ergebnisse in folgenden Bereichen vor:

  • Forum: Object-Pascal / Delphi-Language

    Re: $0 in stream and loading as text

      Delphi
      by WojTec, 25. Aug 2014
    @Sir Rufo, next time I'll be more precise :)
    Data producer is unknown, I just know it is some resource compiler + compiler + linker (mean file is executable). Data is some data, it can be in any format, it can be a string too.

    I wrote simple function to check if stream can be Unicode or ANSII:

    function GetEncoding(AStream: TStream): TEncoding;
    var
    V: Byte;
    begin
    Result :=...
  • Forum: Object-Pascal / Delphi-Language

    Re: AW: Re: AW: $0 in stream and loading as text

      Delphi
      by WojTec, 24. Aug 2014
    Probably I see d, not D :cyclops:
    Anyway don't working annd changing encoding don't want to help :?
  • Forum: Object-Pascal / Delphi-Language

    Re: AW: $0 in stream and loading as text

      Delphi
      by WojTec, 24. Aug 2014
    I'm talking about stream content (bytes). First 2 bytes are $64 (100d = Ascii(D)Ascii(d)) and $00. I'm trying load this stream as text (above code), in sample stream, after load to TStrings I have 'D''d', so looks they stop decoding text when see $0.

    When I save data and load in notepad, I see characters separated with space. I want to decode whole stream as text, even if $0 bytes inside.
    ...
  • Forum: Object-Pascal / Delphi-Language

    $0 in stream and loading as text

      Delphi
      by WojTec, 24. Aug 2014
    I have sample data in stream like shown on attached image. You see many $0 inside. I want to load this stream to TStrings:

    Text.LoadFromStream(Data);



    Yeah, loading, but only to first $0. How to load whole data of this stream as text?

    I tried also use additional string stream with encoding as Ansi or Unicode on create and load to strings from this encoded stream. The same result.


URL zu dieser Suchanfrage:

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