Error in Examples(FastReport Studio Trial\Examples\VisualC++\Main)
int CReportStructureDlg::InsertItem(HTREEITEM Item, IfrxComponentPtr pComponent)
{
HRESULT hr;
HTREEITEM SelfItem;
IfrxComponent * pChildComponent;
int nCount;
{
BSTR description;
BSTR base_name;
CString str;
hr = pComponent->get_Description(&base_name);
str += base_name;
str += " : ";
hr = pComponent->get_BaseName(&description);
str += description;
SysFreeString(base_name);
SysFreeString(description);
SelfItem = m_TreeCtrl.InsertItem(str, 0, 0, Item);
}
hr = pComponent->get_ObjectsCount(&nCount);
for(int idx=0; idx<nCount; idx++)
{
pChildComponent = pComponent->__GetObject(idx); //----> leads to the error below
InsertItem(SelfItem, pChildComponent);
}
m_TreeCtrl.Expand(Item, TVE_EXPAND);
return hr;
}
error C2039: ???__GetObject???: is not a member of ???FastReport::IfrxComponent??? c:\program files\fastreports\fastreport studio trial\examples\visualc++\main\frxcom\reportstructuredlg.cpp 79 frxCOM
{
HRESULT hr;
HTREEITEM SelfItem;
IfrxComponent * pChildComponent;
int nCount;
{
BSTR description;
BSTR base_name;
CString str;
hr = pComponent->get_Description(&base_name);
str += base_name;
str += " : ";
hr = pComponent->get_BaseName(&description);
str += description;
SysFreeString(base_name);
SysFreeString(description);
SelfItem = m_TreeCtrl.InsertItem(str, 0, 0, Item);
}
hr = pComponent->get_ObjectsCount(&nCount);
for(int idx=0; idx<nCount; idx++)
{
pChildComponent = pComponent->__GetObject(idx); //----> leads to the error below
InsertItem(SelfItem, pChildComponent);
}
m_TreeCtrl.Expand(Item, TVE_EXPAND);
return hr;
}
error C2039: ???__GetObject???: is not a member of ???FastReport::IfrxComponent??? c:\program files\fastreports\fastreport studio trial\examples\visualc++\main\frxcom\reportstructuredlg.cpp 79 frxCOM