Click here to Skip to main content
15,914,642 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with RichEdit. Pin
scanf31-Mar-05 7:59
scanf31-Mar-05 7:59 
QuestionHow to create a shortcut within C++ program Pin
garyflet30-Mar-05 6:47
garyflet30-Mar-05 6:47 
AnswerRe: How to create a shortcut within C++ program Pin
Alexander M.,30-Mar-05 6:53
Alexander M.,30-Mar-05 6:53 
Questionhow to write in a file from exe file Pin
smriti12330-Mar-05 6:15
smriti12330-Mar-05 6:15 
AnswerRe: how to write in a file from exe file Pin
John R. Shaw30-Mar-05 6:59
John R. Shaw30-Mar-05 6:59 
GeneralRe: how to write in a file from exe file Pin
smriti12330-Mar-05 8:01
smriti12330-Mar-05 8:01 
GeneralRe: how to write in a file from exe file Pin
John R. Shaw30-Mar-05 8:16
John R. Shaw30-Mar-05 8:16 
GeneralRe: how to write in a file from exe file Pin
NewbieStats30-Mar-05 10:44
NewbieStats30-Mar-05 10:44 
Are you using MS-DOS based? or MFC EditBoxes?

MFC EditBox...
<br />
#include "fstream.h"<br />
<br />
			CString strE1Input; // Create CString<br />
			CString strFilename; // Create FileName<br />
			GetDlgItemText(IDC_EDIT1,strE1Input); // Gets data from IDC_Edit1 places it in CString strE1Input<br />
			strFilename = "Info.txt"; // Sets FileName<br />
			ofstream a_file ( strFilename ); // Opens File -- FileName<br />
		    a_file<< strE1Input; // Writes all Context in EditBox1 into File<br />
			a_file.close(); // Closes File...<br />

**Hope that helps... If ur using MS-DOS (Windows App) let me know**

/* Just a Human Trying to Live in a Computers World. */
GeneralRe: how to write in a file from exe file Pin
NewbieStats30-Mar-05 11:46
NewbieStats30-Mar-05 11:46 
GeneralRe: how to write in a file from exe file Pin
Christian Graus30-Mar-05 12:07
protectorChristian Graus30-Mar-05 12:07 
GeneralRe: how to write in a file from exe file Pin
John R. Shaw31-Mar-05 19:54
John R. Shaw31-Mar-05 19:54 
GeneralRe: how to write in a file from exe file Pin
Christian Graus31-Mar-05 20:34
protectorChristian Graus31-Mar-05 20:34 
GeneralRe: how to write in a file from exe file Pin
John R. Shaw31-Mar-05 22:03
John R. Shaw31-Mar-05 22:03 
GeneralRe: how to write in a file from exe file Pin
John R. Shaw31-Mar-05 22:11
John R. Shaw31-Mar-05 22:11 
Questionhow to write in a file from exe file Pin
smriti12330-Mar-05 6:14
smriti12330-Mar-05 6:14 
AnswerRe: how to write in a file from exe file Pin
David Crow30-Mar-05 8:22
David Crow30-Mar-05 8:22 
GeneralFMOD function problem Pin
giulia8030-Mar-05 5:52
giulia8030-Mar-05 5:52 
GeneralRe: FMOD function problem Pin
Alexander M.,30-Mar-05 6:46
Alexander M.,30-Mar-05 6:46 
GeneralICMP Issue Pin
no_reg_name30-Mar-05 5:20
no_reg_name30-Mar-05 5:20 
GeneralRe: ICMP Issue Pin
Alexander M.,30-Mar-05 6:52
Alexander M.,30-Mar-05 6:52 
Generalopenvc dll Pin
sumo6930-Mar-05 5:08
sumo6930-Mar-05 5:08 
GeneralRe: openvc dll Pin
David Crow30-Mar-05 5:22
David Crow30-Mar-05 5:22 
GeneralWindows socket Pin
alireza_shokoie30-Mar-05 2:54
alireza_shokoie30-Mar-05 2:54 
GeneralRe: Windows socket Pin
Mike Dimmick30-Mar-05 3:31
Mike Dimmick30-Mar-05 3:31 
QuestionRetrieving the position of icons on the desktop, howto ? Pin
ohadp30-Mar-05 1:08
ohadp30-Mar-05 1:08 

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.