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.
Есть структура на C++, в которой находится указатель на callback-функцию. Вопрос: как это сделать на Delphi? Спасибо.

typedef LONG (*PPACallbackPtr)(LONG cmd, LONG arg, LPSTR str);
typedef struct {
// Пропущено
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
// Пропущено
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.03 c
1-22028
tovSuhov
2001-12-18 12:16
2002.01.08
Maybe someone knows ...


14-22406
VEG
2001-11-10 12:56
2002.01.08
It happened here with me different ...


4-22488
Arick
2001-10-31 09:20
2002.01.08
how to find the name of the loaded Dll


7-22439
PONTIY
2001-09-27 09:18
2002.01.08
Displaying an already created (Create) component on another form


1-22019
Hex_for_delphi
2001-12-17 20:21
2002.01.08
How to write a trainer!





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