Click here to Skip to main content
15,888,454 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
virtual HRESULT BeginParse(IStream *pStream)
{
   ATLASSERT( pStream != NULL );
   CComVariant varStream;
   varStream = static_cast<IUnknown*>pStream);
   HRESULT hr = m_spReader->parse(varStream);

   if (SUCCEEDED(hr))
   {
      if (m_refMap.GetCount() != 0)
      {
         hr = E_FAIL;
      }
   }

   return hr;
}

When run to m_spReader->parse(varStream), will show error, I don't know why the error happens. Who can tell me. Thank you.
Posted
Updated 3-Aug-10 8:50am
v5
Comments
Moak 18-May-10 8:36am    
Updated subject and tags, hope this is what you are looking for.
CPallini 25-May-10 4:21am    
You should report the error messsage to get any help.
Niklas L 2-Jun-10 14:57pm    
What is m_spReader declared as?
Jörgen Sigvardsson 3-Aug-10 14:51pm    
What does the XML code look like?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900