AGB  ·  Datenschutz  ·  Impressum  







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

Ergebnis der Suchanfrage


Datum des Suchindex: Heute, 03:02

Parameter dieser Suchanfrage:

Suche in Thema: Delphi 12 und SendMessage
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 4 von insges. 4 Treffern
Suche benötigte 0.000s

Es liegen Ergebnisse in folgenden Bereichen vor:

  • Forum: Programmieren allgemein

    AW: Delphi 12 und SendMessage

     
      by Kas Ob., 20. Feb 2024
    Well, you are right if the target is the variable itself not what it does represent, like in case data serialization against passing data between threads in the same process using thread safe list.
    But for more accurate example :
    We all familiar with Windows API's that takes structures (records), and many of them do need special initialization with cbSize or the very popular...
  • Forum: Programmieren allgemein

    AW: Delphi 12 und SendMessage

     
      by Kas Ob., 20. Feb 2024
    You are right, but for best practice i prefer never to use variable, to avoid situations like the following
    type
    PMyRecord = ^TMyRecord;

    TMyRecord = record
    Buffer: array of Byte;
    end;

    TMyClass = class
    public
  • Forum: Programmieren allgemein

    AW: Delphi 12 und SendMessage

     
      by Kas Ob., 19. Feb 2024
    That can't be right.

    First i put SizeOf(TCopyDataStruct) not sizeof(aCopyData), why it is important because 8 and 4 are the size of single and simple pointer, not a record (struct), and 8 and 4 looks like a pointer something like PCopyDataStruct not TCopyDataStruct, or you just used @aCopyData by mistake.
    Second as rule of thumb, never ever use with SendMessage, PostMessage... parameters...
  • Forum: Programmieren allgemein

    AW: Delphi 12 und SendMessage

     
      by Kas Ob., 19. Feb 2024
    Hi,

    Just an idea, i don't have Delphi 12, but form what i read there is change in default Integer and NativeInt...

    So please check the size of TCopyDataStruct in both Delphi 11 and 12, may be something broke there with dwData,
    It would be nice if you shared with us the SizeOf(TCopyDataStruct) in the 4 cases Delphi 11 and Delphi 12 for application with 32bit and 64bit.


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=214670
Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 03:21 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