Re: What unit to find functions and procedures?
- From: "alanglloyd@xxxxxxx" <alanglloyd@xxxxxxx>
- Date: 23 Jun 2006 22:34:43 -0700
JamesR wrote:
How do you know which unit an API might be in. If i was using
EnumWindowsProc() for instance, (or something else maybe) - how would
you know which unit to include in the uses list - the best I can think
of is finding some text searching program, and searching all the VCL
.pas files. Ideas?
Look in the Win32.hlp file which (I believe) comes with most Delphi
versions.
Or use Windows Explorer, browse to the Delphi Source folder, then use
the Search option in Windows Explorer for "*.pas" files and containing
"EnumWindowsProc".
However Win XP uses a "Search Filter" appropriate for each file
extension. To search for text in text files which don't have the .txt
extension, you have to make an entry in the Registry to force the use
of the default filter for that type of text file. This needs an entry
in the appropriate HKEYCLASSESROOT\<.ext>\PersistentHandler key which
contains the default filter GUID.
eg for Delphi .dpr & .pas files, create an appropriately named .reg
file (eg Pas_Dpr.reg) containing the following ...
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.pas\PersistentHandler]
@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"
[HKEY_CLASSES_ROOT\.dpr\PersistentHandler]
@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"
.... then double click the file in Windows Explorer, that will run the
file and make the entry.
Of course you do all this entirely at your own risk to your system.
Alan Lloyd
.
- References:
- What unit to find functions and procedures?
- From: JamesR
- What unit to find functions and procedures?
- Prev by Date: Re: What unit to find functions and procedures?
- Next by Date: Re: Binary
- Previous by thread: Re: What unit to find functions and procedures?
- Next by thread: Re: What unit to find functions and procedures?
- Index(es):
Relevant Pages
|