Re: What unit to find functions and procedures?




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

.



Relevant Pages

  • Re: Recurse folders - Great Code
    ... My class does this as fast as eg. Windows Explorer in a search would do. ... And remember, even if no files are found because your file name filter excludes them all, the search is not much faster than a search returning *all* files. ... this caching is done by Windows for you. ... The class holds the data for all files in memory and you can search them now from memory, which is much faster as to start a new search for each files of interest. ...
    (microsoft.public.vb.general.discussion)
  • RE: IIS 6.0 - "Service Unavailable" - ISAPI filters do not load
    ... Finally I found in the Event Log for applications an entry telling me the ... exact path of the filter that did not load. ... Now the metabase has some similarities to the Windows Registry, ... Server 2003 SP2 server. ...
    (microsoft.public.inetserver.misc)
  • Re: Recurse folders - Great Code
    ... My class does this as fast as eg. Windows Explorer in a search would do. ... excludes them all (say using "abcd.gfh" as filter which would only find ... up to you which parts of the search (eg file names only, dirs only, file ... this caching is done by Windows for you. ...
    (microsoft.public.vb.general.discussion)
  • Re: save word file as word 6.0/95 (*.doc) in office 2003
    ... I have the missing entry in my copy of Word 2003, and the filter I detailed ... Word MVP web site http://word.mvps.org ...
    (microsoft.public.word.docmanagement)
  • Re: Xnews filter rule based on path?
    ... For some time now Xnews has been able to filter on any header as long ... as your server supports XHDRs, but even if your server does it ... entry to your Score.ini there is a fair chance it won't work. ...
    (news.software.readers)