Autor Beitrag
O'rallY
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 563



BeitragVerfasst: Mi 04.09.02 15:58 
Wie programmiert man in Delphi ein Callback (Funktionspointer). Also sowas wie das hier (für die, die sich in C/C++ auskennen):
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
/* C-Code */
void test(int a, int b, int (*f)( int, int))
{
...
Var1 = (*f)( Var2, Var3);
...
}

_________________
.oO'rallY
Linux is like a tipi: No gates, no windows and a gnu-eating apache inside...
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Mi 04.09.02 17:13 
Hallo,

Callback-Methoden definiere ich immer so:
ausblenden Quelltext
1:
2:
3:
4:
Type
  tCallbackProc = Procedure (bla bla bla);

Function Blablabla (aCallbackProc: tCallbackProc): Integer;


Hat Dir das geholfen?

Gruß
TINO
O'rallY Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 563



BeitragVerfasst: Mi 04.09.02 18:25 
Ja, vielen Dank!

_________________
.oO'rallY
Linux is like a tipi: No gates, no windows and a gnu-eating apache inside...