Question...
-
Okay Alok, ive realized maybe itll be easier using the idea you said... But i gotta try what i thought... Dont ask why, its driving me crazy...
void CNewAccountDlg::OnOK() { CString strUsername; CString strPassword; CString strTest; GetDlgItemText(IDC_USERNAME,strUsername); GetDlgItemText(IDC_PASSWORD,strPassword); m_USERNAME.SetSel(0,1); m_USERNAME.Copy(); ofstream a_file ( "data/account.dat", ios::ate, ios::app); a_file<< strUsername + " " + strPassword + "\n"; a_file.close(); AfxMessageBox("Account Created."); }
Paste is not a member of CString. So how would i paste m_USERNAME to strTest? Or is there a way to justm_USERNAME.SetSel(0,1)
and tranfer tochar test[02];
? /* Just a Human Trying to Live in a Computers World. */ -
Okay Alok, ive realized maybe itll be easier using the idea you said... But i gotta try what i thought... Dont ask why, its driving me crazy...
void CNewAccountDlg::OnOK() { CString strUsername; CString strPassword; CString strTest; GetDlgItemText(IDC_USERNAME,strUsername); GetDlgItemText(IDC_PASSWORD,strPassword); m_USERNAME.SetSel(0,1); m_USERNAME.Copy(); ofstream a_file ( "data/account.dat", ios::ate, ios::app); a_file<< strUsername + " " + strPassword + "\n"; a_file.close(); AfxMessageBox("Account Created."); }
Paste is not a member of CString. So how would i paste m_USERNAME to strTest? Or is there a way to justm_USERNAME.SetSel(0,1)
and tranfer tochar test[02];
? /* Just a Human Trying to Live in a Computers World. */