What are DLLs?


DLL (Dynamic-Link Library) – in the Microsoft Windows environment, a shared library, which stores implementations of various program subroutines or program resources. The subroutines and resources contained in the DLL can be used directly or indirectly (via a different DLL) by any executable file, the DLL itself is not a stand-alone program.

dll error
dll error

Dynamic library functions (DLL) can be simultaneously (at the same time) imported by many programs (hence the term: shared library), thanks to this the operational memory is less loaded. DLLs can be imported statically or dynamically. Unlike static libraries that are linked to the program at the time of its consolidation, dynamically imported DLLs are a separate part of the program and their modification does not require re-consolidation, however a problem with the library (no imported functions or problem loading the library) completely prevents execution of the program. Dynamically imported libraries are loaded into the operating memory only at the moment defined by the programmer (usually when they are actually needed) – hence the term: dynamically linked library – so DLL files are often used as plug-ins in various programs.

In Microsoft Windows, DLLs have the extension .dll, .ocx (when the library is an ActiveX control), .cpl (when the library is an extension of the Control Panel), .drv (when it is driver), and can be used in programs written in different languages ​​intended for the Windows platform.

In AutoIt, you can not create your own DLLs (DLL can be created only in compiled languages ​​such as C, C ++, C #, D, VB, Delphi, etc.), you can use ready-made libraries for that.

Read:   Everything about DLLs

In fact, most AutoIt functions are extensions to the operating system’s DLL functions (eg all GUI functions).

If you have errors related to missing dll download dll files.

What is the structure?

Structure or record – is a complex data type found in many programming languages, grouping logically related data of different types in one area of memory. The structure components – fields – are labeled, i.e. they have their unique names; by giving the name you get access to the field.

The structures are used, among others, to exchange data between the script and the DLL functions.

Since AutoIt basically does not contain a record type of data, structures are not created directly, but through the appropriate function (DllStructCreate ()) and string with the description of their construction. The manipulation of structures is also carried out by means of specially designed functions.