Click here to Skip to main content
15,924,452 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalfetching printer information in mfc Pin
Anonymous28-Oct-02 21:57
Anonymous28-Oct-02 21:57 
QuestionWhy gethostbyaddr() doesn't work for dial-up client? Pin
Wenrich28-Oct-02 21:33
Wenrich28-Oct-02 21:33 
AnswerRe: Why gethostbyaddr() doesn't work for dial-up client? Pin
Anonymous29-Oct-02 0:59
Anonymous29-Oct-02 0:59 
AnswerRe: Why gethostbyaddr() doesn't work for dial-up client? Pin
ian mariano29-Oct-02 1:38
ian mariano29-Oct-02 1:38 
GeneralEdit control question Pin
alex.barylski28-Oct-02 20:43
alex.barylski28-Oct-02 20:43 
GeneralRe: Edit control question Pin
Anonymous29-Oct-02 0:57
Anonymous29-Oct-02 0:57 
GeneralRe: Edit control question Pin
alex.barylski29-Oct-02 11:34
alex.barylski29-Oct-02 11:34 
QuestionHow to copy data within first text file to second text file (use CStdioFile) Pin
ooosawaddee328-Oct-02 18:23
ooosawaddee328-Oct-02 18:23 
Now I can write data from program to text file by using WriteString() and SeekToEnd().
So I want to write program to copy all data within first text file to second text file by using CStdioFile

Do you know how to do that?
Thank you for your answer.Roll eyes | :rolleyes:

These below is some part of my program to write data from program to text file by using CStioFile

outp_filename = m_uniquecodeFileName;<br />
<br />
	CStdioFile EncryptedUniqueCode;<br />
	CFileException FileExc;<br />
	UINT nOpenFlags;<br />
	CString szTemp, m_string;<br />
	nOpenFlags = CFile::modeWrite;<br />
	if (!EncryptedUniqueCode.Open(outp_filename, nOpenFlags, &FileExc)) {<br />
	FileExc.ReportError();<br />
	return;<br />
	}<br />
	EncryptedUniqueCode.SeekToEnd();<br />
<br />
           // m_string has some value<br />
                     .<br />
                     .<br />
                     .<br />
<br />
	EncryptedUniqueCode.WriteString(m_string+'\n');<br />
<br />
	EncryptedUniqueCode.Close();

AnswerRe: How to copy data within first text file to second text file (use CStdioFile) Pin
Christian Graus28-Oct-02 18:36
protectorChristian Graus28-Oct-02 18:36 
GeneralRe: How to copy data within first text file to second text file (use CStdioFile) Pin
ooosawaddee328-Oct-02 19:02
ooosawaddee328-Oct-02 19:02 
GeneralRe: How to copy data within first text file to second text file (use CStdioFile) Pin
Christian Graus28-Oct-02 19:20
protectorChristian Graus28-Oct-02 19:20 
GeneralRe: How to copy data within first text file to second text file (use CStdioFile) Pin
Joaquín M López Muñoz28-Oct-02 20:31
Joaquín M López Muñoz28-Oct-02 20:31 
GeneralCFormView and CTabCtrl :: MFC Pin
valikac28-Oct-02 18:06
valikac28-Oct-02 18:06 
GeneralRe: CFormView and CTabCtrl :: MFC Pin
super29-Oct-02 1:55
professionalsuper29-Oct-02 1:55 
GeneralRe: CFormView and CTabCtrl :: MFC Pin
valikac29-Oct-02 4:31
valikac29-Oct-02 4:31 
Generalvb program rune fine but the same gives error in VC++ Pin
Anonymous28-Oct-02 18:07
Anonymous28-Oct-02 18:07 
GeneralRe: vb program rune fine but the same gives error in VC++ Pin
Anonymous29-Oct-02 0:52
Anonymous29-Oct-02 0:52 
GeneralRe: vb program rune fine but the same gives error in VC++ Pin
Anonymous29-Oct-02 18:36
Anonymous29-Oct-02 18:36 
GeneralRe: vb program rune fine but the same gives error in VC++ Pin
Rickard Andersson2029-Oct-02 2:16
Rickard Andersson2029-Oct-02 2:16 
GeneralRe: vb program rune fine but the same gives error in VC++ Pin
Anonymous29-Oct-02 18:46
Anonymous29-Oct-02 18:46 
Generalcant find WM_SETFOCUS for .... Pin
devvvy28-Oct-02 17:30
devvvy28-Oct-02 17:30 
GeneralRe: cant find WM_SETFOCUS for .... Pin
Shog928-Oct-02 18:29
sitebuilderShog928-Oct-02 18:29 
GeneralThanks, but... Pin
devvvy28-Oct-02 19:18
devvvy28-Oct-02 19:18 
GeneralRe: Thanks, but... Pin
Shog928-Oct-02 19:21
sitebuilderShog928-Oct-02 19:21 
GeneralRe: Thanks, but... Pin
devvvy28-Oct-02 19:24
devvvy28-Oct-02 19:24 

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.