char *p;
CString str="dfsafdsf";
p=(LPCTSTR)(LPTSTR)str;
这句等价:p=str.GetBuffer(0);
(LPCTSTR)(LPTSTR) 就是进行强制转换为char 指针!
//
在OSTREAM.H中有这样的一个inline函数:
inline _CRTIMP ostream& __cdecl endl(ostream& _outs) { return _outs << '/n' << flush; }
也就是说
endl= return _outs << '/n' << flush;
endl是清空缓存区,然后换行
/n只是单纯的换行输出
//
UpdateDate(TRUE/FALSE);
TRUE 就是将控件的值传给变量
FALSE 就是将变量的值传给控件,得以显示!