Try:
 
CString temp; m_scanPath.GetwindowText( temp );
 
fs::path scanPath( (LPCTSTR)temp, fs::native );
 
Jeff F