Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to clear DLL's
Message
From
05/07/1999 22:30:01
 
 
To
05/07/1999 13:16:55
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00237517
Message ID:
00237623
Views:
14
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform