for(int j = 0; j < pSizeInfos->GetCount(); j ++)
{
LiveboxSizeInfo* pSizeInfo = dynamic_cast<LiveboxSizeInfo*>(pSizeInfos->GetAt(j) );
- AppLog("(%d, %d), preview(%ls)", pSizeInfo->GetSize().width, pSizeInfo->GetSize().height, pSizeInfo->GetPreviewImagePath().GetPointer());
+ AppLog("size(%f, %f), preview(%ls)", pSizeInfo->GetSize().width, pSizeInfo->GetSize().height, pSizeInfo->GetPreviewImagePath().GetPointer());
}
pSizeInfos->RemoveAll(true);
}
return E_SUCCESS;
}
- for(int i = 0; i < __pLiveboxProviderList->GetCount(); i++)
- {
- LiveboxProviderInfo* pLiveboxProviderInfo = dynamic_cast<LiveboxProviderInfo*>(__pLiveboxProviderList->GetAt(i) );
-
- IList* pSizeList = pLiveboxProviderInfo->GetSizeInfoListN();
- if(pSizeList == null) continue;
- AppLog("%ls, support (%d) sizes", pLiveboxProviderInfo->GetDisplayName().GetPointer(), pSizeList->GetCount() );
-
- for(int j = 0; j < pSizeList->GetCount(); j ++)
- {
- LiveboxSizeInfo* pSizeInfo = dynamic_cast<LiveboxSizeInfo*>(pSizeList->GetAt(j) );
- AppLog("(%d, %d)", pSizeInfo->GetSize().width, pSizeInfo->GetSize().height);
- }
- pSizeList->RemoveAll(true);
- delete pSizeList;
- }
-
// TODO:
// Add your initialization code here
__pList = new (std::nothrow) ListView();
AppLog("pSizeInfo is null");
continue;
}
- AppLog("(%d, %d)", pSizeInfo->GetSize().width, pSizeInfo->GetSize().height);
String size;
- size.Format(255, L"%dx%d", pSizeInfo->GetSize().width, pSizeInfo->GetSize().height);
+ size.Format(255, L"%dx%d", static_cast<int>(pSizeInfo->GetSize().width), static_cast<int>(pSizeInfo->GetSize().height));
Image image;
result r = image.Construct();