CWinApp-derived Class for Retrieving Version Information
Posted
by Bernd Wi_ler
on January 22nd, 2000

This class was developed for the easy accessing of version information from a resource file. It is derived from CWinApp and implements accessor the function you will most likely need to use. As the code is fairly straightforward, I'll let you look at the source for more information.
Here's all you need to do to use this class:
- Add the CVersionApp.cpp and CVersionApp.h to your Project
- Derive your CWinApp class from CVersionApp
- Call the virtual CVersionApp::InitInstance() function from your CWinApp::InitInstance()
BOOL CYourWinApp::InitInstance()
{
....
return CVersionApp::InitInstance();
}
Downloads
Download demo project - 49 KbDownload source - 3 Kb

Comments
Good, but two proposals
Posted by Legacy on 05/28/2003 12:00amOriginally posted by: Thomas Hetzer
Thanks for the code- it works fine for me. But I have two small recommendations:
- fix the code for UNICODE projects (a few calls missing the _T("...")).
- make the get-methods const.
ReplyBest regards,
Thomas
ReadFileTime() fails!
Posted by Legacy on 10/04/2000 12:00amOriginally posted by: Haragan
Reply