FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Unload dll
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Unload dll
Posted: Wed Mar 28, 2007 08:23 PM

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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Unload dll
Posted: Wed Mar 28, 2007 08:41 PM

Vilian,

FreeLibrary( GetModuleHandle( cDllName ) )

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Unload dll
Posted: Wed Mar 28, 2007 09:02 PM

Antonio,

It did not function. I need to unload the ACE32.DLL.

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Unload dll
Posted: Wed Mar 28, 2007 09:43 PM
Vilian,

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

Antonio Linares
www.fivetechsoft.com

Continue the discussion