DLL Submodules

DLLs contain three submodules: Procedures, Types and Constants.

Procedures

Procedures are functions or subroutines that you declare in the Procedures submodule in order to use exportable DLL procedures. Functions return a value, while subroutines do not. When declaring a subroutine, set its return value to void. When declaring a function, set its return value to be the same data type as the exportable DLL function return type. When declaring procedures, you must also define the parameters that they use and their types.

You can see a list of procedures in a DLL by using Windows Quick View (find the DLL in Windows Explorer, right-click, select Quick View). Before you declare a DLL procedure, you must know its parameters and their return types, and the calling protocol. You can find this information in the DLL vendor's documentation or in the DLL's header file. After you declare a DLL procedure, it appears under the DLL's Procedures submodule.

In ATEasy 5.0, DLL Procedures can be created automatically from DLL's header file.  If the user specifies the DLL header file during Inserting DLL or from its context menu (via right button of mouse) of an existing DLL, Importing DLL Function Prototypes, ATEasy (version 5.0 and on) will read C header file, its functions prototypes, and then create its procedures.  Please refer to the topic Inserting a DLL for further information.

Types

DLL types are user-defined data types that extend the types of variables provided by ATEasy. ATEasy provides three user-defined data types: structures, typedefs (aliases), and enumerations. For more information on types, see Overview of User-Defined Data Types.

Constants

DLL Constants are constants that are being used by DLL procedures or defined by DLL.