Re: Read a application version number



DIKonsult wrote:
I do have JCL Components installed but where do I find the class TJclVersionFileInfo ?

You have the source code. If you want to know where something is declared, ask your own computer, not a newsgroup. Here's how I found it on mine:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Rob>cd \src\jcl\source

C:\src\jcl\source>grep -r -l TJclVersionFileInfo *

C:\src\jcl\source>

Apparently, the answer is that you don't find that class at all; JCL doesn't have a class by that name. Let's try something else:

C:\src\jcl\source>grep -r -l TJclFileVersionInfo *
common/JclFileUtils.pas
common/JclResources.pas
windows/JclCOM.pas
windows/JclPeImage.pas

C:\src\jcl\source>

The class is named TJclFileVersionInfo, and it's mentioned in the files listed above. Which one is it declared in?

C:\src\jcl\source>grep -r -l "TJclFileVersionInfo = class" *
common/JclFileUtils.pas

C:\src\jcl\source>

So I guess your answer is that you find it in the JclFileUtils unit.

--
Rob
.


Quantcast