DLL_CALL6()

DLL_CALL6(F,P1,P2,P3,P4,P5,P6)

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

  • Type: Function
  • Parameters: 7
  • Group: DLL

ACTION

The function DLL_CALL6(F,P1,P2,P3,P4,P5,P6) calls a function of the DLL (Dynamic Link Library) loaded to the memory, passing it 6 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_CALL6(F,P1,P2,P3,P4,P5,P6)

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

USE

  • The function DLL_CALL6() 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 or P4 or P5 or P6 is not a correct arithmetic expression.

EXAMPLE

dim r,a,b,c

rem DLL loaded to the memory

dll_on "my_dll.dll"

rem call a function of the DLL with 6 parameters

a=10:b=3:c=9

r=dll_call6("func",a,15,b,6,c,-3)

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

DLL_CALL4()

DLL_CALL5()