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.81 MB
Time: 0.139 c
14-22413
RUS
2001-11-11 21:27
2002.01.08
CD-RW


3-21949
Hermit
2001-12-05 13:22
2002.01.08
Current record value


1-22022
Victor
2001-12-18 08:05
2002.01.08
Need a label to display the formulas


1-22004
KhLexa
2001-12-17 17:57
2002.01.08
Glitches


3-21915
KAA
2001-12-04 10:28
2002.01.08
Resetting the MSSQL2000 variable





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