2

What is the c# equivalent of the Pascal local callback procedure type defined as:

type
MyPascalCallback = procedure(bmpHandle : HBitmap) of object;

How does this particular form (procedure() of object) translate into c#?

This is the case I use for the 'usual' Pascal procedure:

type
MyPascalCallback1 = procedure(bmpHandle : HBITMAP); cdecl;

is translated as

public delegate void MyPascalCallback1 (IntPtr bmpHandle);
David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490
Miroslav Radojević
  • 487
  • 1
  • 5
  • 20

0 Answers0