AGB  ·  Datenschutz  ·  Impressum  







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

Ergebnis der Suchanfrage


Datum des Suchindex: Heute, 11:02

Parameter dieser Suchanfrage:

Suche in Thema: DLL mit Strings von D10 nach Delphi 6
Suche alle Beiträge, die von "Kas Ob." geschrieben wurden
• Suchmethode: "Suche nach allen Begriffen"
• Nach Datum (firstpost) sortiert
• Zeige Treffer als Beiträge
Zeige 3 von insges. 3 Treffern
Suche benötigte 0.000s

Es liegen Ergebnisse in folgenden Bereichen vor:

  • Forum: Programmieren allgemein

    AW: DLL mit Strings von D10 nach Delphi 6

     
      by Kas Ob., 27. Okt 2023
    @kmma ,

    Have you tested the proposed constant hack ?

    Please try this
    // these for single thread
    function BuiltOldAnsiString(const aString: AnsiString): Pointer; overload;
    function BuiltOldAnsiString(const aString: string): Pointer; overload;

    // these for multi thread application
  • Forum: Programmieren allgemein

    AW: DLL mit Strings von D10 nach Delphi 6

     
      by Kas Ob., 26. Okt 2023
    Thinking more :gruebel:

    We don't need a string, just a copy of the string in the memory adjusted to look like a string and let the DLL clear its string nicely and orderly meaning return the pointer with 8 bytes increase, as long the return fake string have refcount = -1 the application will copy its content as string from constant with the right length, this will simplify the Garbage collector...
  • Forum: Programmieren allgemein

    AW: DLL mit Strings von D10 nach Delphi 6

     
      by Kas Ob., 26. Okt 2023
    Hi,

    Is this acceptable to be solved by a hack ?

    As i think it is doable but with little hacking around, see the the string structure is different, but we can utilize the fact of how Delphi handle constant (literal) strings, if the reference count is -1 ($FFFFFFFF) then it will always copy it, so in theory which i see doable, you have to overwrite and adjust your returned string to have the...


URL zu dieser Suchanfrage:

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