Task:
An application written in Delphi takes the structure ( recordin Delphi terms) of three fields. I can send a pointer to this structure using a function SendMessage(Win32 API).
record
SendMessage
So the question is:
How to maintain a specific representation of the structure in memory for Delphi in terms of Delphi?
He has type
PWPModPostData = ^ TWPModPostData; TWPModPostData = record DataType: Integer; Data: PChar; Next: PWPModPostData; end;
How to define it in C? I mean, are there any hidden or utility fields in Delphi structures?
No, there are no hidden fields, and Delphi entries and C structures can be mapped to each other 1: 1 with a few caveats:
- C . , Delphi.
C Delphi , - . , . .
C Delphi , make , , . .
, , , , LPARAM SendMessage(), , . , .
LPARAM
SendMessage()
Windows, WM_GETTEXT, , , , .
WM_GETTEXT
, WM_COPYDATA, .
WM_COPYDATA
, . WM_COPYDATA , . , , , , . , . , PChar .
PChar
Edit:
: , ; DLL, , DLL , , , DLL, . , , , .
Source: https://habr.com/ru/post/1724895/More articles:XBAP applications will not load: has the operation been disabled? - .net-3.5jquery, send form when field loses focus - javascriptGoogle Mashup using C ++ - c ++Haskell linux pixel drawing library - pixelhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1724894/haskell-question-constraining-data-types-to-use-show&usg=ALkJrhh84uuLWhlgeiPy1QVgfFSojHR84gJava MDSJ produces NaN - javaHow to import data into a relational database in RDF? - relational-databaseКак создать пусковую установку отладки Eclipse, которая запускает класс - javaHow can I implement scripts in my game? - c ++Open files from current directory using C ++ wildcard - c ++All Articles