@DllPassInt

Parent Previous Next

@DllPassInt.

Pass an integer value by reference to/from the DLL.


Syntax.


 @DllPassInt(Integer handle; String funcName; Integer &cmd, &value)

 


Arguments:


Example:


 Integer dllHandle := 1;

 Integer cmd := 7, value := -1;

 @DllPassInt(dllHandle, "My_DLL_API_FunctionName_Foo123", cmd, value);

 //Now both cmd and value may have changed.



The API Signature.

Any DLL function called using @DllPassInt must match the argument signature presented here:



 //Same API signature in either Pascal or C/C++.


 // Pascal:

 procedure Foo(var cmd, value : int32); stdcall;


 // C/C++:

 void foo(int& cmd, int& value);



When using these or any other programming languages for the DLL please keep in mind to use 32 bit integers, and in case a call convention must be explicitly specified please choose either cdecl or stdcall.