Unload dll

Post Reply
User avatar
vilian
Posts: 795
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil
Contact:

Unload dll

Post by vilian »

Hi,

I need to unload a DLL of which I know only the name. I have as?
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Vilian,

FreeLibrary( GetModuleHandle( cDllName ) )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
vilian
Posts: 795
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil
Contact:

Post by vilian »

Antonio,

It did not function. I need to unload the ACE32.DLL.
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Vilian,

Try this:

Code: Select all

while GetModuleHandle( cDllName ) ) != 0
   FreeLibrary( GetModuleHandle( cDllName ) )
   SysRefresh()
end
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply