CFileItemPtr pItem = GetFileItem(); CString fileName = pItem->GetProperty(FITEMPROP_FILENAME);
CFileItemPtr pItem = GetFileItem(); double fileSize = pItem->GetProperty(FITEMPROP_FILESIZE).GetDouble();In this example, the GetFileItem() function returns a CFileItemPtr object that represents a file item. The GetProperty() function is then used to retrieve the file size property of the item, which is returned as a Variant object. The GetDouble() function of Variant is then used to convert the property value to a double. Both examples are part of the MFC (Microsoft Foundation Classes) library, which is a C++ object-oriented library for developing Windows applications.