Click here to Skip to main content
15,915,611 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalsmtp Pin
_tasleem6-Apr-05 23:55
_tasleem6-Apr-05 23:55 
GeneralRe: smtp Pin
Steve S7-Apr-05 1:15
Steve S7-Apr-05 1:15 
GeneralRe: smtp Pin
Alexander M.,7-Apr-05 5:00
Alexander M.,7-Apr-05 5:00 
GeneralCreate button Pin
Francis Chau6-Apr-05 23:55
Francis Chau6-Apr-05 23:55 
GeneralRe: Create button Pin
ThatsAlok7-Apr-05 0:15
ThatsAlok7-Apr-05 0:15 
GeneralHelp me... Pin
vtalau6-Apr-05 23:11
vtalau6-Apr-05 23:11 
GeneralRe: Help me... Pin
David Crow7-Apr-05 2:26
David Crow7-Apr-05 2:26 
GeneralQuestion... Pin
NewbieStats6-Apr-05 23:02
NewbieStats6-Apr-05 23:02 
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...
<br />
void CNewAccountDlg::OnOK() <br />
{<br />
	CString strUsername;<br />
	CString strPassword;<br />
	CString strTest;<br />
	GetDlgItemText(IDC_USERNAME,strUsername);<br />
	GetDlgItemText(IDC_PASSWORD,strPassword);<br />
<br />
	m_USERNAME.SetSel(0,1);<br />
	m_USERNAME.Copy();<br />
<br />
	ofstream a_file ( "data/account.dat", ios::ate, ios::app);<br />
	a_file<< strUsername + " " + strPassword + "\n";<br />
	a_file.close();<br />
	AfxMessageBox("Account Created.");<br />
}<br />

Paste is not a member of CString. So how would i paste m_USERNAME to strTest? Or is there a way to just m_USERNAME.SetSel(0,1) and tranfer to char test[02];?

/* Just a Human Trying to Live in a Computers World. */
GeneralRe: Question... Pin
toxcct6-Apr-05 23:08
toxcct6-Apr-05 23:08 
GeneralDoEvents() during loading process... in MFC Pin
anderslundsgard6-Apr-05 22:57
anderslundsgard6-Apr-05 22:57 
GeneralRe: DoEvents() during loading process... in MFC Pin
RChin6-Apr-05 23:13
RChin6-Apr-05 23:13 
GeneralRe: DoEvents() during loading process... in MFC Pin
anderslundsgard6-Apr-05 23:40
anderslundsgard6-Apr-05 23:40 
GeneralRe: DoEvents() during loading process... in MFC Pin
RChin6-Apr-05 23:43
RChin6-Apr-05 23:43 
GeneralRe: DoEvents() during loading process... in MFC Pin
BadJerry7-Apr-05 0:41
BadJerry7-Apr-05 0:41 
GeneralRe: DoEvents() during loading process... in MFC Pin
ThatsAlok7-Apr-05 1:04
ThatsAlok7-Apr-05 1:04 
GeneralRe: DoEvents() during loading process... in MFC Pin
RChin7-Apr-05 1:07
RChin7-Apr-05 1:07 
GeneralRe: DoEvents() during loading process... in MFC Pin
BadJerry7-Apr-05 1:12
BadJerry7-Apr-05 1:12 
GeneralRe: DoEvents() during loading process... in MFC Pin
anderslundsgard7-Apr-05 3:08
anderslundsgard7-Apr-05 3:08 
GeneralRe: DoEvents() during loading process... in MFC Pin
Ravi Bhavnani7-Apr-05 6:59
professionalRavi Bhavnani7-Apr-05 6:59 
GeneralRe: DoEvents() during loading process... in MFC Pin
David Crow7-Apr-05 2:30
David Crow7-Apr-05 2:30 
GeneralWindows Installer Conditional Shortcuts Pin
jerry0davis6-Apr-05 22:54
jerry0davis6-Apr-05 22:54 
Generalneed help Pin
Francis Chau6-Apr-05 22:48
Francis Chau6-Apr-05 22:48 
GeneralRe: need help Pin
toxcct6-Apr-05 22:52
toxcct6-Apr-05 22:52 
GeneralRe: need help Pin
ThatsAlok6-Apr-05 22:53
ThatsAlok6-Apr-05 22:53 
GeneralRe: need help Pin
Francis Chau6-Apr-05 23:41
Francis Chau6-Apr-05 23:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.