ciao.
Non riesco a capire (e è un po che ci sbatto la testa) come passare un array di puntatori ad una funzione che li "riempie"
Nel seguente caso sto cercando di riempire gli array nodes e pItems
codice:
bool CSelectionFolder::TreeNodeClick(HTREEITEM* hItem)
{

	HTREEITEM *nodes = NULL;//array da riempire
	CBaseSelectionSection* pItems= NULL;//array da riempire
	GetAllChildren(hItem,&nodes,&pItems);
	
	for (int i=0;i<(2);i++)
	{
		CBaseSelectionSection* pItem =pItems[0];
			
			
	}
	
	
	
	return true;
}

bool CSelectionFolder::CreateListViewItem(CBaseSelectionSection sel)
{	
	
	return true;
}

void CSelectionFolder::GetAllChildren(HTREEITEM* hmyItem,HTREEITEM *&hNodes,CBaseSelectionSection*& TagNodes)
{
	if (m_tree->ItemHasChildren(*hmyItem))
	{
		HTREEITEM hNextItem;
		HTREEITEM hChildItem = m_tree->GetChildItem(*hmyItem);
		int idx=0;
		while (hChildItem != NULL)
		{
			hNextItem = m_tree->GetNextItem(hChildItem,  TVGN_CHILD );
			hNodes[idx]=hNextItem;
			
			CBaseSelectionSection* pItem =(CBaseSelectionSection*) m_tree->GetItemData(hChildItem);
			TagNodes[idx]=*pItem;
			
			hChildItem = hNextItem;
			idx++;
		}
	}
}
scusate se è un caso gia visto ma ho cercato nel forum ma non sono riuscito a trovare quello che vi chiedo ora.