How get the File Version with VB or API Windows 
Author Message
 How get the File Version with VB or API Windows

Hello,

I would like to know how get the file version in VB5 or API ?

Thanks.




Sat, 11 Nov 2000 03:00:00 GMT  
 How get the File Version with VB or API Windows

Check out http://www.geocities.com/siliconvalley/6304/css under the VB5
Classes option, then "tcyFileInfo".  That'll get you more than what you
need and show you how to do it as well...

HIH

Quote:

> Hello,

> I would like to know how get the file version in VB5 or API ?

> Thanks.





Sun, 12 Nov 2000 03:00:00 GMT  
 How get the File Version with VB or API Windows

Raphael,
    I believe this is what you are looking for:

VB Declaration-------------------------------------------
Declare Function GetFileVersionInfo& Lib "version.dll" Alias _
"GetFileVersionInfoA" (ByVal lptstrFilename As String, ByVal dwHandle As
Long, _
ByVal dwLen As Long, lpData As Byte)

Description-----------------------------------------------------
Retrieves the file version information from a module that supports
version stamping.

Parameter Type/Description-------------------------------------------
lptstrFilename StringThe name of the file from which to load version
information.
dwHandle LongNot used under Win32
dwLen LongThe size of the byte array or buffer specified by the lpData
parameter. Use the GetFileVersionInfoSize function to determine the
required buffer size.
lpData ByteThe first byte in a buffer to load with the files version
information.

Return Value------------------------------------
LongNonzero on success, zero on failure. Sets GetLastError.

Platform-------------------------------------
Windows 95, Windows NT, Win16

All of the material presented here is copyrighted by either Desaware or
Macmillan. No part of this material may be used or reproduced in any
fashion (except in brief quotations used in critical articles and
reviews) without prior consent.

Quote:

> Hello,

> I would like to know how get the file version in VB5 or API ?

> Thanks.





Tue, 14 Nov 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. VerQueryValue API - getting a files version information

2. Getting Windows Version in VB

3. Getting driver file version information via vbscript or VB

4. Getting file versions with VB

5. Getting driver file version information via vbscript or VB

6. Getting Windows Version

7. Getting Current Windows Version and Memory Status :HELP PLEASE

8. Getting Windows Version Number

9. Getting the Windows Version

10. API Call for Getting the DOS Version

11. Windows 2000 Version Api

12. Old version Windows API Bible.

 

 
Powered by phpBB® Forum Software