How to get file version of an MFC application?
-
Hai! In any MFC dialog based application if we go to Resource view->and click on Version we get a version info of our application in the version info there are two bocks : 1. FILEVERSION 1,0,0,1 and PRODUCTVERSION 1,0,0,1 etc then a black line as separator then 2. Block header, Comments , company name and then File vesion product version etc. Now i need to get the file version of my application programatically, i am currently using GetFileVersionInfo (), this function gets the file version fron 2nd or lower block, i need the file version from 1st block FILEVERSION, is there any direct function?? Thanks!
-
Hai! In any MFC dialog based application if we go to Resource view->and click on Version we get a version info of our application in the version info there are two bocks : 1. FILEVERSION 1,0,0,1 and PRODUCTVERSION 1,0,0,1 etc then a black line as separator then 2. Block header, Comments , company name and then File vesion product version etc. Now i need to get the file version of my application programatically, i am currently using GetFileVersionInfo (), this function gets the file version fron 2nd or lower block, i need the file version from 1st block FILEVERSION, is there any direct function?? Thanks!
kapardhi wrote:
Now i need to get the file version of my application programatically, i am currently using GetFileVersionInfo (), this function gets the file version fron 2nd or lower block, i need the file version from 1st block FILEVERSION, is there any direct function??
User
GetFileVersionInfo
function. For a demo have a look at the Process viewer[^] application.Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com
-
kapardhi wrote:
Now i need to get the file version of my application programatically, i am currently using GetFileVersionInfo (), this function gets the file version fron 2nd or lower block, i need the file version from 1st block FILEVERSION, is there any direct function??
User
GetFileVersionInfo
function. For a demo have a look at the Process viewer[^] application.Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com
Sorry for not providing a detailed information! I actually want to get the version information programmatically for a Pocket PC WIN CE device, I am developing the application in eVC++ I have used GetFileVersionSize (), GetFileVersionInfo (), VerQueryValue() in Visual studio 2005, which was working but not in eVC++ Can i get version information for a PocketPC Application, because if i implement the above functions i get 1814 as error using GetLastError() after executing GetFileVersionInfo() stating "The specified resource name cannot be found in the image file." what does this mean ?? Thanks!
-
Sorry for not providing a detailed information! I actually want to get the version information programmatically for a Pocket PC WIN CE device, I am developing the application in eVC++ I have used GetFileVersionSize (), GetFileVersionInfo (), VerQueryValue() in Visual studio 2005, which was working but not in eVC++ Can i get version information for a PocketPC Application, because if i implement the above functions i get 1814 as error using GetLastError() after executing GetFileVersionInfo() stating "The specified resource name cannot be found in the image file." what does this mean ?? Thanks!
Can you check here? http://www.eggheadcafe.com/forumarchives/windowsceembedded/Nov2005/post24225478.asp[^]
Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com