XLL+ Class Library

CXllApp::GetVersionInfo

Return the version info of the XLL, including version number, copyright and build information.

[C++]
static CString GetVersionInfo(
   const char* pszItem
);

Parameters

pszItem

The name of the item of version information requested. This may be one of:

CompanyName
FileDescription
FileVersion
InternalName
LegalCopyright
LegalTrademarks
OriginalFilename
ProductName
ProductVersion

Return value

A string containing the version information requested. If none was found, the string will be empty.

Remarks

This function returns an item from the version information built into the XLL. This is the same information you can see in the Properties dialog of NT Explorer.

Since this function is static, it is not necessary to use an instance of CXllApp to invoke it. It is not therefore necessary to fix the MFC CWinApp instance using the XLL_FIX_STATE macro: you can use code such as:

CXlOper xloResult;
xloResult = CXllApp::GetVersionInfo("FileVersion");

Requirements

Header: xllplus.h

See Also

CXllApp Class | CXllApp Methods