VC2005,狗血的CString::MakeLower()出错
vc2005 + win2000.//VC6下没有问题
实际运行时提示 "An invalid argument was encountered.",我查了两天多.
代码在下面链接中.
http://www.shuct.net/down.asp?id=20110421180927&check=E40C8C483358CCE01517322E61E825FC
......
CString ls_swap;
theApp.loadfile("1111.txt",&ls_swap);
MessageBox(NULL,ls_swap,"",NULL);//到这里没问题
ls_swap.MakeLower();//这一句出错
MessageBox(NULL,ls_swap,"",NULL);
......
---------------------------
Microsoft Visual C++ Runtime Library
---------------------------
Runtime Error!
Program: f:\desktop\...
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
---------------------------
确定
---------------------------
......