ReturnInt32Method

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

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

protected static extern  void ReturnInt32_(IntPtr ExprPartHandle, Int32 Value);
            
{DLLImport}procedure ReturnInt32__(ExprPartHandle: System.Pointer;Value: Int32); cdecl; external uCalcDLL name 'ReturnInt32';

            
typedef  void (* __ReturnInt32)(void *ExprPartHandle, int32_t Value); 

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

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