Delegate.Constructor(p As Ptr)

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

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()