Hie Team.
i am copying data from an EditControl called IDC_EDIT1 to a variable called ReqInfo.Amount
i am using the followong code:
what i would like to ask is "is there any other way to do this"
i am finding it hard to follow this code
i am copying data from an EditControl called IDC_EDIT1 to a variable called ReqInfo.Amount
i am using the followong code:
Code:
CEdit *DSP; CString text; DSP = reinterpret_cast<CEdit *>(GetDlgItem(AMOUNT)); DSP->GetWindowTextW(text); if(text.GetLength() == 0) { SetDlgItemText(IDC_STATIC_NOTIFY,L"Field is Blank"); return; } else { sprintf_s(ReqInfo.Amount, 15,"%s",CT2CA(text)); ReqInfo.Amount[text.GetLength()] = 0; }
i am finding it hard to follow this code
Comment