Error in Examples(FastReport Studio Trial\Examples\VisualC++\Main)

edited September 2010 in FastReport Studio
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

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.