Click here to Skip to main content
15,908,173 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Convert CString to UINT Pin
rohit.dhamija23-Jun-03 0:48
rohit.dhamija23-Jun-03 0:48 
GeneralRe: Convert CString to UINT Pin
nfactorial23-Jun-03 3:14
nfactorial23-Jun-03 3:14 
GeneralRe: Convert CString to UINT Pin
John M. Drescher23-Jun-03 3:47
John M. Drescher23-Jun-03 3:47 
GeneralRe: Convert CString to UINT Pin
Trollslayer23-Jun-03 1:24
mentorTrollslayer23-Jun-03 1:24 
GeneralLink Problem Pin
Bernhard23-Jun-03 0:12
Bernhard23-Jun-03 0:12 
GeneralRe: Link Problem Pin
John M. Drescher23-Jun-03 0:32
John M. Drescher23-Jun-03 0:32 
Generaldetecting if a text file is ansi or unicode Pin
Jeremy Pullicino23-Jun-03 0:03
Jeremy Pullicino23-Jun-03 0:03 
GeneralRe: detecting if a text file is ansi or unicode Pin
Jonas Larsson23-Jun-03 0:57
Jonas Larsson23-Jun-03 0:57 
I've been looking for something like this too.

Notepad (on W2k) adds 0xFF, 0xFE to a UNICODE file, so if your files are created by it (or by something you can change to prepend that to the file) you can look for that.

Otherwise, the only good method I know is if you know that the codepage is ANSI, then you can check if the first 10 (or more) even bytes are 0 or not. That should give you an idea if its unicode or not.

Jonas

“Our solar system is Jupiter and a bunch of junk” - Charley Lineweaver 2002
GeneralRe: detecting if a text file is ansi or unicode Pin
Johnny ²23-Jun-03 0:59
Johnny ²23-Jun-03 0:59 
GeneralRe: detecting if a text file is ansi or unicode Pin
Jeremy Pullicino23-Jun-03 1:43
Jeremy Pullicino23-Jun-03 1:43 
GeneralRe: detecting if a text file is ansi or unicode Pin
Johnny ²23-Jun-03 2:31
Johnny ²23-Jun-03 2:31 
GeneralRe: detecting if a text file is ansi or unicode Pin
RChin23-Jun-03 3:48
RChin23-Jun-03 3:48 
GeneralRe: detecting if a text file is ansi or unicode Pin
Ryan Binns23-Jun-03 1:13
Ryan Binns23-Jun-03 1:13 
GeneralRe: Another Decision Pin
Jeremy Pullicino23-Jun-03 2:04
Jeremy Pullicino23-Jun-03 2:04 
GeneralRe: Another Decision Pin
Jeremy Pullicino23-Jun-03 3:57
Jeremy Pullicino23-Jun-03 3:57 
QuestionClassWizard missing classes? Pin
Mister Transistor22-Jun-03 23:39
Mister Transistor22-Jun-03 23:39 
AnswerRe: ClassWizard missing classes? Pin
John M. Drescher23-Jun-03 0:16
John M. Drescher23-Jun-03 0:16 
GeneralRe: ClassWizard missing classes? Pin
Mister Transistor23-Jun-03 0:50
Mister Transistor23-Jun-03 0:50 
QuestionGetDocument in a dialog? Pin
Mister Transistor22-Jun-03 23:35
Mister Transistor22-Jun-03 23:35 
AnswerRe: GetDocument in a dialog? Pin
will138323-Jun-03 2:41
will138323-Jun-03 2:41 
GeneralRe: GetDocument in a dialog? Pin
Mister Transistor23-Jun-03 4:09
Mister Transistor23-Jun-03 4:09 
AnswerRe: GetDocument in a dialog? Pin
David Crow23-Jun-03 2:43
David Crow23-Jun-03 2:43 
GeneralRe: GetDocument in a dialog? Pin
will138323-Jun-03 2:47
will138323-Jun-03 2:47 
GeneralRe: GetDocument in a dialog? Pin
Jonathan Craig23-Jun-03 3:40
Jonathan Craig23-Jun-03 3:40 
GeneralCoTaskMemAlloc vs. new Pin
peterchen22-Jun-03 23:26
peterchen22-Jun-03 23:26 

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.