Click here to Skip to main content
15,898,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: AddPrinter Windows API call help Pin
Graham Bradshaw12-Jan-09 12:25
Graham Bradshaw12-Jan-09 12:25 
GeneralRe: AddPrinter Windows API call help Pin
TaffyApple12-Jan-09 21:47
TaffyApple12-Jan-09 21:47 
GeneralRe: AddPrinter Windows API call help Pin
Graham Bradshaw12-Jan-09 22:16
Graham Bradshaw12-Jan-09 22:16 
GeneralRe: AddPrinter Windows API call help Pin
TaffyApple13-Jan-09 1:43
TaffyApple13-Jan-09 1:43 
GeneralRe: AddPrinter Windows API call help Pin
Graham Bradshaw13-Jan-09 2:21
Graham Bradshaw13-Jan-09 2:21 
GeneralRe: AddPrinter Windows API call help Pin
TaffyApple13-Jan-09 3:00
TaffyApple13-Jan-09 3:00 
QuestionRight to Left alignment of the DialogBox i Pin
Alex@9C12-Jan-09 6:58
Alex@9C12-Jan-09 6:58 
QuestionFlushing the content of an std::wstring to an UTF-8 encoded text file .. [SOLVED] Pin
Ahmed Charfeddine12-Jan-09 5:38
Ahmed Charfeddine12-Jan-09 5:38 
How can I do it ?
Trying with the following code is not helpful :

<br />
wofstream fout;<br />
fout.open(fileTo, ios_base::out | ios_base::trunc | ios_base::binary);<br />
fout << content.c_str();<br />
fout << flush;<br />
fout.close();<br />


(where content is of type std::wstring)

Are there special header characters I need to insert in order to indicate to a standard UTF-8 text file reader (such as NotePad) that the file is actually encoded in UTF-8 ??

Thank you in advance.

modified on Wednesday, January 14, 2009 1:09 PM

AnswerRe: Flushing the content of an std::wstring to an UTF-8 encoded text file .. Pin
Mark Salsbery12-Jan-09 7:01
Mark Salsbery12-Jan-09 7:01 
GeneralRe: Flushing the content of an std::wstring to an UTF-8 encoded text file .. Pin
Ahmed Charfeddine14-Jan-09 7:06
Ahmed Charfeddine14-Jan-09 7:06 
GeneralRe: Flushing the content of an std::wstring to an UTF-8 encoded text file .. Pin
Mark Salsbery14-Jan-09 7:24
Mark Salsbery14-Jan-09 7:24 
Questionatomic file write Pin
Dave_12-Jan-09 5:00
Dave_12-Jan-09 5:00 
AnswerRe: atomic file write Pin
Rajasekharan Vengalil12-Jan-09 5:21
Rajasekharan Vengalil12-Jan-09 5:21 
GeneralRe: atomic file write Pin
Dave_12-Jan-09 7:21
Dave_12-Jan-09 7:21 
GeneralRe: atomic file write Pin
Rajasekharan Vengalil12-Jan-09 7:29
Rajasekharan Vengalil12-Jan-09 7:29 
GeneralRe: atomic file write Pin
Dave_12-Jan-09 7:31
Dave_12-Jan-09 7:31 
GeneralRe: atomic file write Pin
Rajasekharan Vengalil12-Jan-09 9:11
Rajasekharan Vengalil12-Jan-09 9:11 
QuestionAgain New / Delete [modified] Pin
ptr_Electron12-Jan-09 2:33
ptr_Electron12-Jan-09 2:33 
GeneralAgain confusing formatting. Pin
Iain Clarke, Warrior Programmer12-Jan-09 2:50
Iain Clarke, Warrior Programmer12-Jan-09 2:50 
AnswerRe: Again New / Delete Pin
Iain Clarke, Warrior Programmer12-Jan-09 2:53
Iain Clarke, Warrior Programmer12-Jan-09 2:53 
GeneralRe: Again New / Delete Pin
CPallini13-Jan-09 0:15
mveCPallini13-Jan-09 0:15 
AnswerRe: Again New / Delete Pin
Maximilien12-Jan-09 3:12
Maximilien12-Jan-09 3:12 
AnswerRe: Again New / Delete Pin
Cedric Moonen12-Jan-09 3:23
Cedric Moonen12-Jan-09 3:23 
AnswerRe: Again New / Delete Pin
Rajesh R Subramanian12-Jan-09 5:29
professionalRajesh R Subramanian12-Jan-09 5:29 
QuestionGet the machine name of the mapped drive C++ Pin
raesa12-Jan-09 2:17
raesa12-Jan-09 2:17 

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.