Click here to Skip to main content
15,920,956 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Read file, write to array, find min and max Pin
rocky_pulley11-Feb-05 6:52
rocky_pulley11-Feb-05 6:52 
GeneralRe: Read file, write to array, find min and max Pin
dr.eu11-Feb-05 7:16
dr.eu11-Feb-05 7:16 
GeneralRe: Read file, write to array, find min and max Pin
David Crow11-Feb-05 8:12
David Crow11-Feb-05 8:12 
GeneralRe: Read file, write to array, find min and max Pin
dr.eu11-Feb-05 9:30
dr.eu11-Feb-05 9:30 
GeneralRe: Read file, write to array, find min and max Pin
rocky_pulley11-Feb-05 9:32
rocky_pulley11-Feb-05 9:32 
GeneralRe: Read file, write to array, find min and max Pin
dr.eu11-Feb-05 9:44
dr.eu11-Feb-05 9:44 
QuestionHow to switch from vertical to gorizontal split windows? Pin
bilas11-Feb-05 5:33
bilas11-Feb-05 5:33 
GeneralDetection of code pages Pin
Mattias G11-Feb-05 5:24
Mattias G11-Feb-05 5:24 
Hi all.

Has anyone any ideas on how to detect (programatically) the code page of a text file in Win32? At least in a way that makes the correct guess 90 % of the time?

For now, I'm testing different code pages with MultiByteToWideChar (CP_ANSI - CP_UTF8), counting the number of letters in the string (using iswalpha), and then the code page with the most letters wins. Feels shaky. This problem must have been around for ever, but I can't find any good ideas on how to deal with it.

Btw, there's a function called IsTextUnicode in the NLS API, does anyone know how to use it on reversed (MacOS) Unicode-files? I've tried the XXX_REVERSED flags, but the stupid function returns zero for every kind of input.

Any help or clues would be appreciated.
GeneralConnecting database Pin
joy00711-Feb-05 5:01
joy00711-Feb-05 5:01 
GeneralRe: Connecting database Pin
Nemanja Trifunovic11-Feb-05 5:17
Nemanja Trifunovic11-Feb-05 5:17 
Questionhow display full text in a list control Pin
steph00711-Feb-05 4:58
steph00711-Feb-05 4:58 
AnswerRe: how display full text in a list control Pin
rocky_pulley11-Feb-05 7:20
rocky_pulley11-Feb-05 7:20 
AnswerRe: how display full text in a list control Pin
Shog911-Feb-05 13:11
sitebuilderShog911-Feb-05 13:11 
GeneralRe: how display full text in a list control Pin
steph00714-Feb-05 3:16
steph00714-Feb-05 3:16 
QuestionHow to get "private bytes" count pogrammaticaly in C++ Win API? Pin
CherezZaboro11-Feb-05 4:52
CherezZaboro11-Feb-05 4:52 
AnswerRe: How to get "private bytes" count pogrammaticaly in C++ Win API? Pin
jjnet22-Oct-09 23:11
jjnet22-Oct-09 23:11 
Generalerror in xml (code included) Pin
cj_rahul11-Feb-05 3:21
cj_rahul11-Feb-05 3:21 
Generalerror in xml creation (code included) Pin
cj_rahul11-Feb-05 3:20
cj_rahul11-Feb-05 3:20 
GeneralRe: error in xml creation (code included) Pin
ThatsAlok11-Feb-05 18:41
ThatsAlok11-Feb-05 18:41 
GeneralSNTP server Pin
Anonymous11-Feb-05 2:44
Anonymous11-Feb-05 2:44 
GeneralRe: SNTP server Pin
rocky_pulley11-Feb-05 3:24
rocky_pulley11-Feb-05 3:24 
GeneralRe: SNTP server Pin
markkuk11-Feb-05 4:15
markkuk11-Feb-05 4:15 
GeneralDialog box getting COver the entire Screen Pin
Ranjish11-Feb-05 2:26
Ranjish11-Feb-05 2:26 
GeneralRe: Dialog box getting COver the entire Screen Pin
ThatsAlok11-Feb-05 2:50
ThatsAlok11-Feb-05 2:50 
QuestionHow compiler will determine the parent in virtual derivation Pin
Ranjish11-Feb-05 2:18
Ranjish11-Feb-05 2:18 

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.