Unload dll

Unload dll

Postby vilian » Wed Mar 28, 2007 8: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
User avatar
vilian
 
Posts: 964
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Postby Antonio Linares » Wed Mar 28, 2007 8:41 pm

Vilian,

FreeLibrary( GetModuleHandle( cDllName ) )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41937
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby vilian » Wed Mar 28, 2007 9: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
User avatar
vilian
 
Posts: 964
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Postby Antonio Linares » Wed Mar 28, 2007 9:43 pm

Vilian,

Try this:
Code: Select all  Expand view
while GetModuleHandle( cDllName ) ) != 0
   FreeLibrary( GetModuleHandle( cDllName ) )
   SysRefresh()
end
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41937
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 84 guests