Click here to Skip to main content
15,918,125 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Need help to set window style! Pin
Jun Du8-Mar-07 5:21
Jun Du8-Mar-07 5:21 
AnswerRe: Need help to set window style! Pin
_AnsHUMAN_ 8-Mar-07 2:10
_AnsHUMAN_ 8-Mar-07 2:10 
GeneralRe: Need help to set window style! Pin
David Crow8-Mar-07 3:05
David Crow8-Mar-07 3:05 
GeneralRe: Need help to set window style! Pin
bosfan8-Mar-07 3:07
bosfan8-Mar-07 3:07 
GeneralRe: Need help to set window style! Pin
David Crow8-Mar-07 3:17
David Crow8-Mar-07 3:17 
GeneralRe: Need help to set window style! Pin
bosfan8-Mar-07 3:06
bosfan8-Mar-07 3:06 
AnswerRe: Need help to set window style! Pin
Paresh Chitte8-Mar-07 17:12
Paresh Chitte8-Mar-07 17:12 
QuestionMixed UCS-2 and 1-byte ASCII characters Pin
jones1668-Mar-07 1:41
jones1668-Mar-07 1:41 
I'd like to output some text from a csv file and faced a nice problem. Or maybe there isn't a problem, I'm just too anti-pro.

These files have normal english text and some japanese. Normal text is 1-byte and japanese 2-byte. I think this fits in the BMP so the UTF-16 characters are UCS-2.

Microsoft Wordpad displays these files correctly when BOM is UTF-16 Little-Endian, but e.g. Notepad++ does not handle these files correctly even when setting character encoding manually to UTF-16 LE, text is full of empty boxes instead of japanese.

What magic does Wordpad use to distinguish ASCII and UCS-2? No surrogate pairs are needed I think, and was unable to find them with binary-mode look at the characters.

Here is an example of the file's contents as shown with Hexedit:

65 72 2e 73 70 68 0d 0a 22 e7 95 aa e5 8f b7 e3 81 af 


Thanks.
AnswerRe: Mixed UCS-2 and 1-byte ASCII characters Pin
Nemanja Trifunovic8-Mar-07 1:51
Nemanja Trifunovic8-Mar-07 1:51 
GeneralRe: Mixed UCS-2 and 1-byte ASCII characters Pin
jones1668-Mar-07 2:10
jones1668-Mar-07 2:10 
GeneralRe: Mixed UCS-2 and 1-byte ASCII characters Pin
Nemanja Trifunovic8-Mar-07 2:36
Nemanja Trifunovic8-Mar-07 2:36 
QuestionHow to check extended style of List View? Pin
Aryan S8-Mar-07 1:39
Aryan S8-Mar-07 1:39 
AnswerRe: How to check extended style of List View? Pin
vibindia8-Mar-07 2:05
vibindia8-Mar-07 2:05 
QuestionGetting the IE cache entry of the image displayed in the IE Pin
Suyash8-Mar-07 1:05
Suyash8-Mar-07 1:05 
Questiongarbage value problem???? Pin
amitmistry_petlad 8-Mar-07 0:39
amitmistry_petlad 8-Mar-07 0:39 
AnswerRe: garbage value problem???? Pin
prasad_som8-Mar-07 0:46
prasad_som8-Mar-07 0:46 
GeneralRe: garbage value problem???? Pin
amitmistry_petlad 8-Mar-07 0:54
amitmistry_petlad 8-Mar-07 0:54 
AnswerRe: garbage value problem???? Pin
prasad_som8-Mar-07 1:29
prasad_som8-Mar-07 1:29 
GeneralRe: garbage value problem???? Pin
amitmistry_petlad 8-Mar-07 2:39
amitmistry_petlad 8-Mar-07 2:39 
AnswerRe: garbage value problem???? Pin
prasad_som8-Mar-07 2:51
prasad_som8-Mar-07 2:51 
AnswerRe: garbage value problem???? Pin
krmed8-Mar-07 2:58
krmed8-Mar-07 2:58 
Questionmemcpy related Pin
NiceNaidu8-Mar-07 0:37
NiceNaidu8-Mar-07 0:37 
AnswerRe: memcpy related Pin
Vinod Sankaranarayanan8-Mar-07 1:30
Vinod Sankaranarayanan8-Mar-07 1:30 
GeneralRe: memcpy related Pin
toxcct8-Mar-07 1:40
toxcct8-Mar-07 1:40 
GeneralRe: memcpy related Pin
Nemanja Trifunovic8-Mar-07 2:00
Nemanja Trifunovic8-Mar-07 2:00 

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.