DLL Function Declaration Syntax

A function declaration for a DLL typically has the following form:

return-type function-name( [arg-list] )
For functions that do not have a return value, the declaration has the following form:
void function-name( [arg-list] )
return-type
The data type of the return value.
function-name
The name of the function.
arg-list
A list of the arguments that are passed to the function.
The list is specified as follows:
data-type identifier
data-type
The data type of the argument.
  • To specify arguments that can be modified by a function or passed out from a function, use the InOutArgument and the OutArgument class.
  • If you want the DLL function to set the value of the argument, use the OutArgument class.
  • If you want to pass a value into the function, and have the function change the value and pass the new value out, use the InOutArgument class.
identifier
The name of the argument.