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.54 MB
Time: 0.021 c
14:22409
Vadim
2001-11-12 13:56
2002.01.08
Or maybe we will not beat each other's hands?


1:22207
Delphimun
2001-12-15 10:00
2002.01.08
How to compile multiple files in one exe


3:21939
SAN
2001-12-04 16:01
2002.01.08
MSSQL


3:21973
Zav
2001-12-06 10:55
2002.01.08
DBNavigator component


1:22188
Type
2001-12-14 13:09
2002.01.08
How to read a large file ???





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 Spanish 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