ReturnPtrMethod

Applies to:Fast Math Parser
Class:uCalc.Callback
Sets the return value of a uCalc.Callback function as a Pointer
Syntax
ReturnPtr(Value)
Parameters
Value
IntPtr
Pointer value that your callback returns
Returns
Nothing
Remarks
When you define a callback function with DefineFunction that returns a Pointer value, do it with ReturnPtr.
DLL import code
<DllImport(uCalcDLL, CharSet:=CharSet.Ansi, CallingConvention:=CallingConvention.Cdecl, EntryPoint:="ReturnPtr")> _

Private Sub ReturnPtr__(ByVal ExprPartHandle As IntPtr,ByVal Value As IntPtr)
End Sub
            
[DllImport(uCalcDLL, CharSet=CharSet.Ansi, CallingConvention=CallingConvention.Cdecl, EntryPoint="ReturnPtr")]

protected static extern  void ReturnPtr_(IntPtr ExprPartHandle, IntPtr Value);
            
{DLLImport}procedure ReturnPtr__(ExprPartHandle: System.Pointer;Value: System.Pointer); cdecl; external uCalcDLL name 'ReturnPtr';

            
typedef  void (* __ReturnPtr)(void *ExprPartHandle, void * Value); 

            
[DllImport(uCalcLib, CharSet=CharSet::Ansi, CallingConvention=CallingConvention::Cdecl, EntryPoint = "ReturnPtr")]

static void ReturnPtr_(void *  ExprPartHandle, void *   Value);
            
See also
Prev | Next