I need an example how to use "virtual treeview" IterateSubtree in C++ Embarcadero Xe1-7.
I have the problem with this code:
void __fastcall TMyForm::BuSearchClick(TObject *)
{
MyTreeView->IterateSubtree(NULL, SearchDataSomeId, (void*)&PNodeData, TVirtualNodeStates(), false, false);
}
void __fastcall TMyForm::SearchDataSomeId(TBaseVirtualTree*, PVirtualNode Node, void *Data, bool &Abort)
{
}
The compiler gives the following error:
[bcc32 Error] MyFile.cpp(363): E2034 Cannot convert 'void (_fastcall * (_closure )(TBaseVirtualTree *,TVirtualNode *,void *,bool &))(TBaseVirtualTree *,TVirtualNode *,void *,bool &)' to '_di_TVTGetNodeProc'
__interface TVTGetNodeProc;
typedef System::DelphiInterface
__interface TVTGetNodeProc : public System::IInterface
{
public:
virtual void __fastcall Invoke(TBaseVirtualTree* Sender, PVirtualNode Node, void * Data, bool &Abort) = 0 ;
};