Delegate.Constructor(p As Ptr)

From Xojo Documentation

Constructor
Delegate.Constructor(p As Ptr)

The delegate type's constructor takes a single Ptr, which is assumed to be correct for the delegate type.

Sample Code

Assume there is a Delegate declared as SimpleProc:

Var pp As Ptr = AnOSFunctionThatReturnsAFunctionPointer()
Var sp As New SimpleProc(pp)
sp.Invoke()