你使用错函数了!使用这个就可以了GetDlgItemText()  详情参见 MSDN
CWnd::GetDlgItemText  
int GetDlgItemText( int nID, LPTSTR lpStr, int nMaxCount ) const;int GetDlgItemText( int nID, CString& rString ) const;Return ValueSpecifies the actual number of bytes copied to the buffer, not including the terminating null character. The value is 0 if no text is copied.