5

I'm have such static class procedure in my record:

TRec = record
  class procedure Proc; stdcall; static;
end;

Now I need array of such class procedures in my record:

TRec2 = record
  Procs: array of TClassProcStdcallStatic;
end;

This is possible and how to determine TClassProcStdcallStatic?

Alex Egorov
  • 907
  • 7
  • 26

1 Answers1

5

Define it like this:

type
  TClassProcStdcallStatic = procedure; stdcall;

The static keyword means that the method has no Self pointer and is a single pointer function type. As opposed to of object double pointer function types.

David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490