在做项目中经常遇到很多错误,这里我仅仅把自己遇到的一些错误和解决方法写出,供自己和大家查看.
CRect rect; GetClientRect(&rect); CString str; str.Format("%ld",rect.bottom); MessageBox(str);
错误提示:
/* Generic text macros to be used with string literals and character constants. Will also allow symbolic constants that resolve to same. */ #define _T(x) __T(x) #define _TEXT(x) __T(x)
使用时的具体代码方法:str.Format(_T("%ld"),rect.bottom);
虽然这类文章在百度很多,但我还是想以自己的视角写这类一些列自己遇到的错误的解决方法.最后希望该文章对大家有所帮助.参考资料:
http://bbs.csdn.net/topics/380162797
|
|
来自: herowuking > 《VC》