K
kushalsoftpro
Hi I am using STL map in VC++6.0 application.
type of project is MFC DLL.
My code looks like:--
typedef std::map <unsigned long,LPVOID, BOOL> MyMap;
In class definition file i am using this map as:--
MyMap m_mapPHLRecorder ;
MyMap::iterator m_Iterator;
In one function of implementation file the code is :--
m_Iterator = m_mapPHLRecorder.find(nRecorderID);
if (m_Iterator != m_mapPHLRecorder.end())
{
return (*m_Iterator).second ;
}
else
{
// Error Reporting
// Message Line 1: Unable to find Protocol Handler Library.
// Message Line 2: Invalid Recorder Serial Number.
return NULL;
}
If I am not calling the STL map's functions then no errors are coming.
Can anybody please help.
type of project is MFC DLL.
My code looks like:--
typedef std::map <unsigned long,LPVOID, BOOL> MyMap;
In class definition file i am using this map as:--
MyMap m_mapPHLRecorder ;
MyMap::iterator m_Iterator;
In one function of implementation file the code is :--
m_Iterator = m_mapPHLRecorder.find(nRecorderID);
if (m_Iterator != m_mapPHLRecorder.end())
{
return (*m_Iterator).second ;
}
else
{
// Error Reporting
// Message Line 1: Unable to find Protocol Handler Library.
// Message Line 2: Invalid Recorder Serial Number.
return NULL;
}
If I am not calling the STL map's functions then no errors are coming.
Can anybody please help.