DLL Object Methods

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

The DLL object contains the following methods:

Method List

Name Description
DefineDLL Returns the IDefineDLL object, which is needed to define the types of functions in a DLL.
DefineEnvironment

Defines an environment for loading DLLs and creating a helper hosting process (tcHostingProcess.exe) into which TestComplete will load DLLs during test playback. The method allows specifying the “bitness” (32- or 64-bit) of the hosting process to be created for loading DLLs.

The method returns the IDLLAccessProcess object that corresponds to the created environment and provides methods that allow you to define types of DLLs to be loaded, define types of functions to be called, prepare parameters of these functions and load the DLLs in memory.

DefineEnvironmentByDLL

Defines an environment for loading DLLs and creating a helper hosting process (tcHostingProcess.exe) into which TestComplete will load DLLs during test playback. The “bitness” (32- or 64-bit) of the hosting process to be created depends on the “bitness” of the DLL whose name is passed through the method’s parameter.

The method returns the IDLLAccessProcess object that corresponds to the created environment and provides methods that allow you to define types of DLLs to be loaded, define types of functions to be called, prepare parameters of these functions and load the DLLs in memory.

DefineType Defines a custom structure type (the structure name and member types) whose instance you will be able to create using New .
DefineTypeWithAlignment Defines a custom structure type (the structure name and member types) with the specified alignment. You will be able to create instances of the created type by using the New method.
Load Loads the specified DLL in memory and associates it with the specified IDefineDLL object.
New Creates a custom structure (or an array of structures) whose type is declared by using the DefineType or DefineTypeWithAlignment method.

See Also

DLL Object

Highlight search results