Version... example for C++ 4.0 and later
This example puts the version information into a string and displays the string in a message box.
CString LevelStr;
if (m_Lead1.GetVersionLevel() == VERSIONLEVEL_EXP)
LevelStr = "Document/Medical ";
else
LevelStr = "Professional Edition";
CString cMsg = m_Lead1.GetVersionProduct() + "\n" + LevelStr + "\n";
char cStr[16];
wsprintf(cStr, "%u", (int) m_Lead1.GetVersionMajor());
cMsg = cMsg + "Version: " + cStr + ".";
wsprintf(cStr, "%u", (int) m_Lead1.GetVersionMinor());
cMsg = cMsg + cStr + "\n";
cMsg = cMsg + "Date produced: " + m_Lead1.GetVersionDate() + "\n";
cMsg = cMsg + "Time produced: " + m_Lead1.GetVersionTime() + "\n";
// Display the message box
MessageBox(cMsg, "Version Info");