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:

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