Util.cpp
/*--- function MakeVersionString -------------------------------------
 *
 *  Return an ASCII version of the version of this executable,
 *  based on the Windows VERSION resource in the .exe.
 *
 *  Entry:  pszVersionString  points to a buffer that's big enough
 *                            to hold the version number; 17 bytes
 *                            should always be enough.
 *  Exit:   pszVersionString  points to a zero-terminated version
 *                            string of the form w.x.y.z
 *                            If the resource could not be found, a
 *                            zero-length string is returned.
 */
function MakeVersionString
Return an ASCII version of the version of this executable,
based on the Windows VERSION resource in the .exe.

pszVersionString  points to a buffer that's big enough
to hold the version number; 17 bytes
should always be enough.
Exit:   pszVersionString  points to a zero-terminated version
string of the form w.x.y.z
If the resource could not be found, a
zero-length string is returned.
function MakeVersionString Return an ASCII version of the version of this executable based on the Windows VERSION resource in the . exe . pszVersionString points to a buffer that ' s big enough to hold the version number ; 17 bytes should always be enough . Exit : pszVersionString points to a zero - terminated version string of the form w . x . y . z If the resource could not be found a zero - length string is returned .
void MakeVersionString(char *pszVersionString)
{
   char filename[_MAX_PATH];
   GetModuleFileName(NULL,filename,_MAX_PATH);
   MakeVersionStringForFile(filename,pszVersionString);
}
void MakeVersionString ( char * pszVersionString ) { char filename [ _MAX_PATH ] ; GetModuleFileName ( NULL , filename , _MAX_PATH ) ; MakeVersionStringForFile ( filename , pszVersionString ) ; }
function MakeVersionString
  Return an ASCII version of the version of this executable,
  based on the Windows VERSION resource in the .exe.
function MakeVersionString Return an ASCII version of the version of this executable based on the Windows VERSION resource in the . exe .
// Get the application's version info from the executable and