strchr and CString FIND

can someone covert this code that uses STRCHR

 
	m_filename[strchr(m_filename, '.') - m_filename] = '\0';


into code that uses FIND of CString
I think that equivalent code will look as

m_filename[m_filename.find( '.' )] = '\0';
Last edited on
Topic archived. No new replies allowed.