Re: getdlgitemtext
I will not agree , i meke code from example for you, and not working
corectly, buffor "String1" they are no my text in IDC_EDIT1 it is a wrong is
a bufor, may please send me good idea.
mike 1010
UWytkownik "Andy" <bemacdev@community.nospam> napisaV w wiadomo?ci
news:6540074B-F8E4-43C1-8627-29B9FB4FD138@microsoft.com...
You don't need the CDialogPASS before the GetDlgItemText call as you're
already in that class (which is based on CWnd). Use the standard
functions,
not the 'W' ones. The following should work ...
void CDialogPASS::OnBnClickedButtonDp2()
{
CString String1;
GetDlgItemText(IDC_EDIT1, String1);
}
Andy
"1010" wrote:
hi,
hu now, how working "getdlgitemtext"?
but i make somthing and this not working please help me:
void CDialogPASS::OnBnClickedButtonDp2()
{
eg:
CString String1;
CDialogPASS::GetDlgItemTextW(IDC_EDIT1,String1); <<----- no working
or:
//TCHAR String1;
//dlgret1=GetDlgItemText(IDC_EDIT1,String1,sizeof(String1)); <<------ no
working
//dlgret2=GetDlgItemText(IDC_EDIT2,String2,sizeof(String2)); <<-------
no
working
}
regards mike