怎么用GetDlgItemText函数,把编辑框里面的字符串,读取到char型数组里
如何用GetDlgItemText函数,把编辑框里面的字符串,读取到char型数组里!
如题,谢谢!
------解决方案--------------------
CWindow::GetDlgItemText
UINT GetDlgItemText( int nID, LPTSTR lpStr, int nMaxCount ) const;
BOOL GetDlgItemText( int nID, BSTR& bstrText ) const;
---------------------------------------------------
char buf[1024] = {0};
GetDlgItemText(IDC_EDIT1, buf, 1024);
------解决方案--------------------
如题,谢谢!
------解决方案--------------------
CWindow::GetDlgItemText
UINT GetDlgItemText( int nID, LPTSTR lpStr, int nMaxCount ) const;
BOOL GetDlgItemText( int nID, BSTR& bstrText ) const;
---------------------------------------------------
char buf[1024] = {0};
GetDlgItemText(IDC_EDIT1, buf, 1024);
------解决方案--------------------