FreeLibrary Function

Declare 문에 의해 로드된 DLL을 해제합니다. 해제된 DLL은 자체 함수 중 하나가 호출될 경우 자동으로 다시 로드됩니다. 참고 항목: Declare

구문:

FreeLibrary (LibName As String)

매개 변수:

LibName: DLL의 이름을 지정하는 문자열 식입니다.

참고 아이콘

FreeLibrary는 Basic 런타임 도중에 로드된 DLL만 해제할 수 있습니다.


Error codes:

5 잘못된 프로시저 호출입니다.

예:

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!