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

C / C++ / MFC

 
AnswerRe: How to Segment the characters ? Pin
CPallini17-May-09 21:31
mveCPallini17-May-09 21:31 
QuestionHow to Segment the characters ? Pin
Sakthi.Gs :-)17-May-09 21:47
Sakthi.Gs :-)17-May-09 21:47 
QuestionHow to Segment the characters [ Image Processing] ? Pin
Sakthi.Gs :-)17-May-09 21:50
Sakthi.Gs :-)17-May-09 21:50 
GeneralRe: How to Segment the characters [ Image Processing] ? Pin
norish18-May-09 5:43
norish18-May-09 5:43 
QuestionRe: How to Segment the characters ? Pin
CPallini17-May-09 21:57
mveCPallini17-May-09 21:57 
QuestionHow to Segment the characters ? Pin
Sakthi.Gs :-)17-May-09 22:34
Sakthi.Gs :-)17-May-09 22:34 
Questionprint unicode number in c++ Pin
pitok23514917-May-09 18:31
pitok23514917-May-09 18:31 
AnswerRe: print unicode number in c++ Pin
CPallini17-May-09 22:18
mveCPallini17-May-09 22:18 
If I understand correctly and your UNICODE character code is 0x70a6, you may try this
unsigned short us = (uniNumber[3] << 12) | (uniNumber[2] << 8) | (uniNumber[1] << 4) | uniNumber[0];
fwrite((char*) &us, sizeof (us), 1 , fp);


This is correct as far uniNumber[1] = 0x0a;, on the other hand, if uniNumber[1] = 'a'; then you need a bit more manipulation (the same applies, of course, to every uniNumber array item).

Moreover you need to write the proper BOM [^] at the very beginning of the file.
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

QuestionRetrieving public key for encryption from digital certificate Pin
shrims4u17-May-09 5:25
shrims4u17-May-09 5:25 
Questionclick 'enter' button make text in CEdit control to get next line Pin
jeansea17-May-09 4:51
jeansea17-May-09 4:51 
AnswerRe: click 'enter' button make text in CEdit control to get next line Pin
Code-o-mat17-May-09 4:58
Code-o-mat17-May-09 4:58 
GeneralRe: click 'enter' button make text in CEdit control to get next line Pin
jeansea17-May-09 5:41
jeansea17-May-09 5:41 
GeneralRe: click 'enter' button make text in CEdit control to get next line Pin
Code-o-mat17-May-09 5:55
Code-o-mat17-May-09 5:55 
GeneralRe: click 'enter' button make text in CEdit control to get next line Pin
jeansea17-May-09 6:02
jeansea17-May-09 6:02 
GeneralRe: click 'enter' button make text in CEdit control to get next line Pin
N a v a n e e t h17-May-09 7:11
N a v a n e e t h17-May-09 7:11 
QuestionRe: click 'enter' button make text in CEdit control to get next line Pin
David Crow18-May-09 3:47
David Crow18-May-09 3:47 
AnswerRe: click 'enter' button make text in CEdit control to get next line Pin
«_Superman_»17-May-09 16:15
professional«_Superman_»17-May-09 16:15 
Questionwhere the memory leak? Pin
guqingkui17-May-09 4:32
guqingkui17-May-09 4:32 
AnswerRe: where the memory leak? Pin
N a v a n e e t h17-May-09 4:57
N a v a n e e t h17-May-09 4:57 
GeneralRe: where the memory leak? Pin
guqingkui17-May-09 5:26
guqingkui17-May-09 5:26 
GeneralRe: where the memory leak? Pin
N a v a n e e t h17-May-09 7:00
N a v a n e e t h17-May-09 7:00 
GeneralRe: where the memory leak? Pin
guqingkui17-May-09 7:10
guqingkui17-May-09 7:10 
AnswerRe: where the memory leak? Pin
Stephen Hewitt17-May-09 6:01
Stephen Hewitt17-May-09 6:01 
GeneralRe: where the memory leak? Pin
guqingkui17-May-09 6:04
guqingkui17-May-09 6:04 
GeneralRe: where the memory leak? Pin
Stephen Hewitt17-May-09 6:34
Stephen Hewitt17-May-09 6:34 

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.