Home
Top.Mail.Ru Yandeks.Metrika
Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Down

C -> Pascal: function pointer inside structure Find similar branches


N   (2001-12-20 10:04) [0]

Hello.
There is a structure in C ++ that contains a pointer to a callback function. Question: how to do it on Delphi? Thank.

typedef LONG (* PPACallbackPtr) (LONG cmd, LONG arg, LPSTR str);
typedef struct {
// Omitted
PPACallbackPtr ControlFunction;
} PPARecord;

--------------------------------------------------

PPACallbackPtr = ???;

PPARecord = record
ControlFunction: PPACallbackPtr;
end;



Внук   (2001-12-20 10:58) [1]

type

PPACallbackPtr = function (cmd, arg: LongInt; str: PChar): LongInt;

PPARecord = record
// Omitted
ControlFunction: PPACallbackPtr;
end;



Pages: 1 whole branch

Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Top









Memory: 0.55 MB
Time: 0.033 c
1-22140
Serg5
2001-12-20 10:17
2002.01.08
The question of whether it is possible to reduce the font to 4 pixels, it changes, it changes (the program does not swear), but on the screen (Canvas.Font) it still displays 8 (the most minimal)


6-22315
Marser
2001-08-01 16:04
2002.01.08
SMS message


1-22085
ProfiUgl
2001-12-19 15:24
2002.01.08
How to read command line options


1-22080
Delphimun
2001-12-18 17:11
2002.01.08
How to load the cursor from the resource, and then save it to disk?


1-22196
T2
2001-12-16 07:18
2002.01.08
Desktop off





afrikaans albanian Arabic armenian azerbaijani basque belarusian bulgarian catalan Chinese (Simplified) Chinese (Traditional) croatian Czech danish Dutch English estonian filipino finnish French
galician georgian German greek haitian Creole hebrew Hindi hungarian icelandic indonesian Irish italian Japanese Korean latvian lithuanian macedonian malay maltese norwegian
persian polish portuguese Romanian russian serbian slovak Slovenian Español swahili Swedish thai turkish Ukrainian urdu vietnamese welsh yiddish bengali bosnian
cebuano Esperanto gujarati hausa hmong igbo javanese kannada khmer lao latin maori marathi mongolian nepali punjabi somali tamil telugu yoruba
zulu
English French German Italian Portuguese Russian Spanish