Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to clear DLL's
Message
De
05/07/1999 22:30:01
 
 
À
05/07/1999 13:16:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00237517
Message ID:
00237623
Vues:
15
Basically, there is no good way of doing what you want. There are several tricks or techniques to know if a function was delcared, but none is 100% sure. There is no way to undeclare only one function or to unload only one dll.

The only sure way is to declare the function right before its use, each time the function is used. The DECLARE command is very fast.

It's better to leave the dll functions undeclared (ie never use CLEAR DLLS), mainly because there may be functions declared by third party software or even code that you're not aware of and a CLEAR DLLS would break it.

Anyway, usually, unless you have a large number of dlls (or dlls that use a huge amount of memory), there is no big penalty for not clearing the dll function declarations.

Vlad

>How to check whether a DLL function (Win32API function) is already declared or not ? Also how to clear a single DLL declaration in case you have many active DLL functions? I am aware of "clear dll" which clears all the declared DLL functions.
>Your comment on how to organize declaring and clearing of WinAPI functions will be highly appreciated.
>
>Thanks
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform