Contents

# FreeLibrary Function

Releases DLLs that were loaded by a Declare statement. A released DLL is automatically reloaded if one of its functions is called. See also: Declare

## Syntax:

    FreeLibrary (LibName As String)

## Parametri:

LibName: String expression that specifies the name of the DLL.

Slobodna biblioteka može izbaciti DLL koji su učitani za vrijeme Basic radnog vremena.

### Error codes:

5 Invalid procedure call

## Primjer:

    Declare Sub MyMessageBeep Lib "user32.dll" Alias "MessageBeep" ( Long )
    Sub ExampleDeclare
    Dim lValue As Long
        lValue = 5000
        MyMessageBeep( lValue )
        FreeLibrary("user32.dll" )
    End Sub

Please support us!