i want to convert stringstream into a string type
e.g.
void countParameters(stringstream p_InputDataToCount, unsigned int &counter, char Delimeter)
{
size_t found;
//stringstream convert ( p_InputDataToCount );
//convert>> std::hex >> m_nCommandID;
//I want to do somethong like this
found=p_InputDataToCount.find_first_of(Delimeter);
while (found!=string::npos)
{
counter++;
found=p_InputDataToCount.find_first_of(',',found+1);
}
}