DLL_CALL3()

DLL_CALL3(F,P1,P2,P3)

CALLS THE FUNCTION F OF THE DLL IN MEMORY, WITH 3 PARAMETERS

  • Type: Function
  • Parameters: 4
  • Group: DLL

ACTION

The function DLL_CALL3(F,P1,P2,P3) calls a function of the DLL (Dynamic Link Library) loaded to the memory, passing it 3 parameters, and returns an arithmetical result.

Remark: the writing of the called function F is "case sentitive", that is it must be exactly the same as declared in DLL. The capital and small letters must be the same.

SYNTAX: Result=DLL_CALL3(F,P1,P2,P3)

  • F = string, function name.
  • P1 = parameter, integer or real.
  • P2 = parameter, integer or real.
  • P3 = parameter, integer or real.

USE

  • The function DLL_CALL3() is used to call a function of a DLL loaded in memory.

ERROR

  • If file F does not exist in DLL.
  • If the writing of the function F (capital and small letters) is not the same as declared in DLL.
  • If F is not a correct name of function.
  • If P1 or P2 or P3 is not a correct arithmetic expression.

EXAMPLE

dim r,a,b

rem DLL loaded to the memory

dll_on "my_dll.dll"

rem call a function of the DLL with 3 parameters

a=10:b=3

r=dll_call3("func",a,15,b)

rem print the result

print v

rem release the memory

dll_off

SEE ALSO

DLL_ON

DLL_OFF

DLL_CALL0()

DLL_CALL1()

DLL_CALL2()

DLL_CALL4()

DLL_CALL5()

DLL_CALL6()