Calling DLL Functions From Tests

Applies to TestComplete 15.47, last modified on January 20, 2023

In TestComplete, you can call routines located in dynamic link libraries (both 32-bit and 64-bit libraries are supported) directly from your tests. This section explains how you can do this.

In This Section

Calling DLL Functions From Tests - Overview

Provides basic information on calling DLL routines from TestComplete tests.

Calling DLL Functions From Tests - Requirements

Describes the requirements to be met for calling DLL functions from tests.

Specifics of Using 32- and 64-bit DLLs

Provides information about specifics of simultaneous usage of 32- and 64-bit DLLs in TestComplete tests.

Calling DLL Functions From Keyword Tests

Explains how you can call DLL functions from keyword tests.

Using Custom Data Structures in DLL Function Calls

Explains how to create variables of custom data types to be passed via parameters of a DLL function.

Using String Parameters in DLL Function Calls

Provides detailed information on creating string variables to be passed via parameters of a DLL function.

Using Arrays in DLL Function Calls

Explains how to create arrays to be used in calls to DLL functions.

Returning Interface References From DLL Functions

Describes specifics of calling Visual C++ and Delphi functions that return references to IUnknown, IDispatch or any other interface objects.

Parameter Types for C++ Routines and Structures

Describes constants used to declare OLE-incompatible parameter types of C++ functions.

Parameter Types for Delphi Routines and Structures

Describes constants used to declare OLE-incompatible parameter types of Delphi functions.

Calling DLL Functions From Tests - Known Limitations

Provides information on known limitations in the TestComplete support for calling routines implemented in dynamic link libraries.

Tutorials

Calling DLL Functions From Tests - Tutorial

A tutorial that provides step-by-step instructions illustrating how to call the DrawTextExA function located in User32.dll from scripts.

Samples

On our web site, you can find some examples of script code that demonstrate calling functions located in external DLLs. Follow the links below to see these examples:

See Also

Using External Functions

Highlight search results