Click here to Skip to main content
16,010,334 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to write CString value to txt file??? Pin
CPallini2-May-07 0:08
mveCPallini2-May-07 0:08 
GeneralRe: How to write CString value to txt file??? Pin
viet_ha2-May-07 0:15
viet_ha2-May-07 0:15 
AnswerRe: How to write CString value to txt file??? Pin
Hamid_RT2-May-07 1:43
Hamid_RT2-May-07 1:43 
GeneralRe: How to write CString value to txt file??? Pin
toxcct2-May-07 2:11
toxcct2-May-07 2:11 
GeneralRe: How to write CString value to txt file??? Pin
Hamid_RT2-May-07 7:44
Hamid_RT2-May-07 7:44 
AnswerRe: How to write CString value to txt file??? Pin
cp98762-May-07 2:13
cp98762-May-07 2:13 
GeneralRe: How to write CString value to txt file??? Pin
toxcct2-May-07 2:17
toxcct2-May-07 2:17 
GeneralRe: How to write CString value to txt file??? Pin
cp98762-May-07 4:06
cp98762-May-07 4:06 
I had to leave something for the OP to find out - he only asked how to write the string to the file after all Poke tongue | ;-P . I often don't call the .close() function as it happens automatically when the stream goes out of scope.

Actually I was hoping that someone was going to embarass me and tell me what I've been missing all these years writing explicit casts from CStrings to LPCSTR to use std::stream and also printf, TRACE macros etc.

I only posted as finding the need to explicitly cast can be a bit of a trick that is hard to find.





Peter
"Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."

GeneralRe: How to write CString value to txt file??? Pin
toxcct2-May-07 4:11
toxcct2-May-07 4:11 
GeneralRe: How to write CString value to txt file??? Pin
cp98762-May-07 14:29
cp98762-May-07 14:29 
QuestionHow to send WM_KEYDOWN message? Pin
eli150219791-May-07 23:21
eli150219791-May-07 23:21 
AnswerRe: How to send WM_KEYDOWN message? Pin
toxcct1-May-07 23:27
toxcct1-May-07 23:27 
GeneralRe: How to send WM_KEYDOWN message? Pin
JudyL_MD2-May-07 3:10
JudyL_MD2-May-07 3:10 
GeneralRe: How to send WM_KEYDOWN message? Pin
toxcct2-May-07 3:13
toxcct2-May-07 3:13 
QuestionRe: How to send WM_KEYDOWN message? Pin
Rajesh R Subramanian1-May-07 23:31
professionalRajesh R Subramanian1-May-07 23:31 
AnswerRe: How to send WM_KEYDOWN message? Pin
eli150219792-May-07 0:45
eli150219792-May-07 0:45 
GeneralRe: How to send WM_KEYDOWN message? Pin
Rajesh R Subramanian2-May-07 4:33
professionalRajesh R Subramanian2-May-07 4:33 
QuestionOCX to DLL Pin
Nilesh Hapse1-May-07 23:19
Nilesh Hapse1-May-07 23:19 
AnswerRe: OCX to DLL Pin
toxcct1-May-07 23:25
toxcct1-May-07 23:25 
GeneralRe: OCX to DLL Pin
Nilesh Hapse1-May-07 23:28
Nilesh Hapse1-May-07 23:28 
GeneralRe: OCX to DLL Pin
toxcct1-May-07 23:30
toxcct1-May-07 23:30 
GeneralRe: OCX to DLL Pin
Nilesh Hapse1-May-07 23:31
Nilesh Hapse1-May-07 23:31 
AnswerRe: OCX to DLL Pin
prasad_som2-May-07 1:28
prasad_som2-May-07 1:28 
GeneralRe: OCX to DLL Pin
Nilesh Hapse2-May-07 21:04
Nilesh Hapse2-May-07 21:04 
QuestionHow to wait for a callback function? Pin
rumburack1-May-07 22:33
rumburack1-May-07 22:33 

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.