thebarslider
Programmer
Dear Everyone,
I am attempting to copy a CString passed into a function into another CString. Here is my example code:
void BeginRecording::SetProgrammeName(CString xmlProgrammeName )
{
CString m_firstProgrammeName = xmlProgrammeName;
}
The program always breaks on the copy line and stops at this statement:
CStringData* GetData() const throw()
{
return( reinterpret_cast< CStringData* >( m_pszData )-1 );
}
atlsimpstr.h file.
I am unsure why this is happening as i have seen other example code where you can copy two CString's.
A forwarded thank you to anyone who can help.
Mark.
I am attempting to copy a CString passed into a function into another CString. Here is my example code:
void BeginRecording::SetProgrammeName(CString xmlProgrammeName )
{
CString m_firstProgrammeName = xmlProgrammeName;
}
The program always breaks on the copy line and stops at this statement:
CStringData* GetData() const throw()
{
return( reinterpret_cast< CStringData* >( m_pszData )-1 );
}
atlsimpstr.h file.
I am unsure why this is happening as i have seen other example code where you can copy two CString's.
A forwarded thank you to anyone who can help.
Mark.