Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: a Design and technical issue Pin
Ahmed Charfeddine19-Aug-09 1:58
Ahmed Charfeddine19-Aug-09 1:58 
GeneralRe: a Design and technical issue Pin
CPallini19-Aug-09 3:04
mveCPallini19-Aug-09 3:04 
GeneralRe: a Design and technical issue Pin
Ahmed Charfeddine19-Aug-09 3:11
Ahmed Charfeddine19-Aug-09 3:11 
AnswerRe: a Design and technical issue Pin
KarstenK19-Aug-09 2:07
mveKarstenK19-Aug-09 2:07 
GeneralRe: a Design and technical issue Pin
Ahmed Charfeddine21-Aug-09 7:35
Ahmed Charfeddine21-Aug-09 7:35 
GeneralRe: a Design and technical issue Pin
KarstenK13-Sep-09 22:46
mveKarstenK13-Sep-09 22:46 
Questionunicode problem Pin
koiava19-Aug-09 0:15
koiava19-Aug-09 0:15 
AnswerRe: unicode problem Pin
Ahmed Charfeddine19-Aug-09 0:29
Ahmed Charfeddine19-Aug-09 0:29 
Hi Qoi,

I believe, before you flush your caracters, you must first write the BOM signature.
I encountered this problem before, but instead of using the windows API like write and open, instead I was
using the STD ofstream data structure, but I think the rule is the same :

first the file is opened in BINARY mode :

ofstream fout;
fout.open(fileTo.c_str(), ios_base::out | ios_base::trunc | ios_base::binary);

Then the BOM is written :

fout.write("\xEF\xBB\xBF", 3); // write UTF-8 Byte Order Mark (BOM)

Followed by your data here before calling close.

Hope this helps.

Easy Profiler : a compile-time profiler for C++
www.potatosoftware.com

AnswerRe: unicode problem Pin
«_Superman_»19-Aug-09 0:33
professional«_Superman_»19-Aug-09 0:33 
Questionpaper orientation Pin
Amin.Abdi18-Aug-09 22:40
Amin.Abdi18-Aug-09 22:40 
AnswerRe: paper orientation Pin
CPallini19-Aug-09 0:59
mveCPallini19-Aug-09 0:59 
QuestionCMFCRibbonProgressBar Pin
sashoalm18-Aug-09 21:48
sashoalm18-Aug-09 21:48 
AnswerRe: CMFCRibbonProgressBar Pin
KarstenK19-Aug-09 2:13
mveKarstenK19-Aug-09 2:13 
GeneralRe: CMFCRibbonProgressBar Pin
sashoalm19-Aug-09 2:46
sashoalm19-Aug-09 2:46 
GeneralRe: CMFCRibbonProgressBar Pin
sashoalm19-Aug-09 3:04
sashoalm19-Aug-09 3:04 
QuestionDiffrence between LPRECT and RECT. When to use LPRECT and RECT. Pin
pandit8418-Aug-09 21:35
pandit8418-Aug-09 21:35 
AnswerRe: Diffrence between LPRECT and RECT. When to use LPRECT and RECT. Pin
Rajesh R Subramanian18-Aug-09 21:44
professionalRajesh R Subramanian18-Aug-09 21:44 
AnswerRe: Diffrence between LPRECT and RECT. When to use LPRECT and RECT. Pin
sashoalm18-Aug-09 21:49
sashoalm18-Aug-09 21:49 
AnswerRe: Diffrence between LPRECT and RECT. When to use LPRECT and RECT. Pin
CPallini19-Aug-09 3:06
mveCPallini19-Aug-09 3:06 
Questiontypedef is not working properly.. Pin
Rakesh518-Aug-09 21:09
Rakesh518-Aug-09 21:09 
AnswerRe: typedef is not working properly.. Pin
KarstenK18-Aug-09 21:39
mveKarstenK18-Aug-09 21:39 
GeneralRe: typedef is not working properly.. Pin
Rakesh518-Aug-09 22:44
Rakesh518-Aug-09 22:44 
GeneralRe: typedef is not working properly.. Pin
KarstenK18-Aug-09 22:56
mveKarstenK18-Aug-09 22:56 
QuestionDetecting memory leak Pin
VCProgrammer18-Aug-09 19:28
VCProgrammer18-Aug-09 19:28 
AnswerRe: Detecting memory leak Pin
Cedric Moonen18-Aug-09 20:20
Cedric Moonen18-Aug-09 20:20 

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.