Click here to Skip to main content
15,920,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ifstream operator>> Pin
toxcct6-Apr-05 22:13
toxcct6-Apr-05 22:13 
GeneralRe: ifstream operator>> Pin
Cedric Moonen6-Apr-05 22:18
Cedric Moonen6-Apr-05 22:18 
GeneralRe: ifstream operator>> Pin
toxcct6-Apr-05 22:37
toxcct6-Apr-05 22:37 
GeneralRe: ifstream operator>> Pin
Cedric Moonen6-Apr-05 22:47
Cedric Moonen6-Apr-05 22:47 
GeneralRe: ifstream operator>> Pin
toxcct6-Apr-05 21:33
toxcct6-Apr-05 21:33 
QuestionHow can I setup remote debug mode in VC.net? Pin
willyfu6-Apr-05 21:20
willyfu6-Apr-05 21:20 
AnswerRe: How can I setup remote debug mode in VC.net? Pin
Alexander M.,7-Apr-05 5:03
Alexander M.,7-Apr-05 5:03 
GeneralCoding Text... Pin
NewbieStats6-Apr-05 21:10
NewbieStats6-Apr-05 21:10 
Alright... Using fstream when making a simple database using MFC... Say you want to make every letter another letter (coding)... Is it possible?
<br />
void CNewAccountDlg::OnOK() <br />
{<br />
	CString strUsername;<br />
	CString strPassword;<br />
	GetDlgItemText(IDC_USERNAME,strUsername);<br />
	GetDlgItemText(IDC_PASSWORD,strPassword);<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 />

Nothing wrong with that... Makes a simple file with Username and Password. How could i break my GetDlgItemText into single CHAR allowing me to change them and regroup them back together? Is it possible to break down a String into single Characters?

/* Just a Human Trying to Live in a Computers World. */
GeneralRe: Coding Text... Pin
ThatsAlok6-Apr-05 21:18
ThatsAlok6-Apr-05 21:18 
GeneralRe: Coding Text... Pin
NewbieStats6-Apr-05 21:27
NewbieStats6-Apr-05 21:27 
GeneralRe: Coding Text... Pin
ThatsAlok6-Apr-05 22:01
ThatsAlok6-Apr-05 22:01 
GeneralRe: Coding Text... Pin
NewbieStats6-Apr-05 22:25
NewbieStats6-Apr-05 22:25 
QuestionHow to create more threads using CreateThread function? Pin
Amarelia6-Apr-05 20:18
Amarelia6-Apr-05 20:18 
AnswerRe: How to create more threads using CreateThread function? Pin
ThatsAlok6-Apr-05 20:36
ThatsAlok6-Apr-05 20:36 
GeneralRe: How to create more threads using CreateThread function? Pin
David Crow7-Apr-05 2:40
David Crow7-Apr-05 2:40 
GeneralRe: How to create more threads using CreateThread function? Pin
ThatsAlok7-Apr-05 17:50
ThatsAlok7-Apr-05 17:50 
AnswerRe: How to create more threads using CreateThread function? Pin
RChin6-Apr-05 23:31
RChin6-Apr-05 23:31 
GeneralRe: How to create more threads using CreateThread function? Pin
Anonymous7-Apr-05 3:16
Anonymous7-Apr-05 3:16 
AnswerRe: How to create more threads using CreateThread function? Pin
David Crow7-Apr-05 2:51
David Crow7-Apr-05 2:51 
GeneralC Language-- Pin
Anonymous6-Apr-05 19:28
Anonymous6-Apr-05 19:28 
GeneralRe: C Language-- Pin
Christian Graus6-Apr-05 19:45
protectorChristian Graus6-Apr-05 19:45 
GeneralRe: C Language-- Pin
GDavy6-Apr-05 19:55
GDavy6-Apr-05 19:55 
GeneralRe: C Language-- Pin
Cedric Moonen6-Apr-05 20:04
Cedric Moonen6-Apr-05 20:04 
GeneralRe: C Language-- Pin
Anonymous6-Apr-05 20:16
Anonymous6-Apr-05 20:16 
GeneralUpdating text with Spaces in RichEditCtrl Pin
Azghar Hussain6-Apr-05 19:05
professionalAzghar Hussain6-Apr-05 19:05 

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.