How to read the version details programatically.
-
Hi All
I have created version details from Version.rc file.
Now I want to read these details in my code so as to display it in About message box. -
which type of files you used to store for version info in resource file?
-
Why don't you simply use Qt's system for it: QApplication has several methods to set version details, and even qmake supports the needed variables.
-
I would follow Andre's advice.
But if you really need to put version information in your application or DLL, you should use "VerQueryValue":http://msdn.microsoft.com/en-us/library/windows/desktop/ms647464(v=vs.85).aspx Be aware ofbq. you must first call the GetFileVersionInfoSize function, and then the GetFileVersionInfo function.