TCHAR a[MAX_PATH]; CString b; …… a = b; 报错RT; 解决方法: lstrcpy( a, b.GetBuffer( b.GetLength() ) ); 解决 跟踪赋值成功