FREELIB

Top  Previous  Next

Syntax

FREELIB(name as STRING)

Description

Unloads a dynamically loaded DLL.

Parameters

name - The name or complete path the the DLL. If the DLL loaded was located in the system file path then it is not necessary to supply a complete pathname.

Return value

None

Remarks

Included for backwards compatibility with other languages

The function will only unload DLLs that were loaded by the calling process. An example of this would be the LoadLibrary API function. You can also unload an import library if no other part of your code attempts to use any function in the DLL.

Example usage

FREELIB "setup.dll"