How do I access the 'ProductVersion" from VS_VERSION_INFO
-
Can someone tell me how to access the 'ProductVersion" from VS_VERSION_INFO in the resource file. I want to set the version number when I compile and use in a MessageBox from within my program Thanks
BOOL CString::LoadString( UINT nID ); throw( CMemoryException ); Return Value Nonzero if resource load was successful; otherwise 0. Parameters nID A Windows string resource ID. Reads a Windows string resource, identified by nID, into an existing CString object. The following example demonstrates the use of CString::LoadString.
// example for CString::LoadString #define IDS_FILENOTFOUND 1 CString s; if (! s.LoadString( IDS_FILENOTFOUND )) { AfxMessageBox("Error Loading String: IDS_FILENOTFOUND"); ... }
路漫漫其修远兮,吾将上下而求索。 -
Can someone tell me how to access the 'ProductVersion" from VS_VERSION_INFO in the resource file. I want to set the version number when I compile and use in a MessageBox from within my program Thanks
-
Can someone tell me how to access the 'ProductVersion" from VS_VERSION_INFO in the resource file. I want to set the version number when I compile and use in a MessageBox from within my program Thanks
cgb143 wrote: Can someone tell me how to access the 'ProductVersion" from VS_VERSION_INFO in the resource file. Use [GetVersionInfo] api or try out this wrapper class:- www.codeproject.com/file/VersionInfo.asp[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV