Click here to Skip to main content
15,909,829 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: can one use vectors of subclasses in a parameter list? Pin
genush18-Feb-10 10:35
genush18-Feb-10 10:35 
AnswerRe: can one use vectors of subclasses in a parameter list? Pin
Chris Losinger18-Feb-10 12:57
professionalChris Losinger18-Feb-10 12:57 
GeneralRe: can one use vectors of subclasses in a parameter list? Pin
Stephen Hewitt20-Feb-10 3:28
Stephen Hewitt20-Feb-10 3:28 
QuestionHow to detect EBCDIC Pin
Hans Dietrich18-Feb-10 8:28
mentorHans Dietrich18-Feb-10 8:28 
AnswerRe: How to detect EBCDIC Pin
Garth J Lancaster18-Feb-10 10:16
professionalGarth J Lancaster18-Feb-10 10:16 
GeneralRe: How to detect EBCDIC Pin
Hans Dietrich18-Feb-10 10:36
mentorHans Dietrich18-Feb-10 10:36 
QuestionRe: How to detect EBCDIC Pin
David Crow18-Feb-10 15:22
David Crow18-Feb-10 15:22 
AnswerRe: How to detect EBCDIC Pin
Luc Pattyn18-Feb-10 10:25
sitebuilderLuc Pattyn18-Feb-10 10:25 
Hi Hans,

strange question. I haven't seen any EBCDIC in the last 30 years or so, and I think I would know when to expect it. But anyway, these are ways I would consider given some data that is supposed to be a text using either EBCDIC or ASCII:

1. binary read the first 1K bytes of it, and count ASCII letters and EBCDIC letters. As their codes are quite different, one of those must clearly outnumber the other.

2. seems like EBCDIC letters are >=128 (see http://www.astrodigital.org/digital/ebcdic.html[^]), so just looking at the ratio of number below and numbers above 128 could be quite sufficient.

3. alternative: if you are expecting some keywords, you might just search for those in either code (still using binary of course)

BTW: if the file starts with a byte-order-mask indicating UTF8 or Unicode, it won't be EBCDIC.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
All Toronto weekends should be extremely wet until we get it automated in regular forums, not just QA.

GeneralRe: How to detect EBCDIC Pin
Garth J Lancaster18-Feb-10 10:46
professionalGarth J Lancaster18-Feb-10 10:46 
GeneralRe: How to detect EBCDIC Pin
Hans Dietrich18-Feb-10 10:55
mentorHans Dietrich18-Feb-10 10:55 
RantRe: How to detect EBCDIC (not a helpful answer, just a comment) Pin
Gary R. Wheeler21-Feb-10 1:56
Gary R. Wheeler21-Feb-10 1:56 
GeneralRe: How to detect EBCDIC (not a helpful answer, just a comment) Pin
Rozis21-Feb-10 11:00
Rozis21-Feb-10 11:00 
QuestionMAPIEx Libraries when OutLook is offline Pin
kasi1418-Feb-10 7:17
kasi1418-Feb-10 7:17 
QuestionERROR_INVALID_FUNCTION when calling WriteFile Pin
krishiyengar18-Feb-10 6:08
krishiyengar18-Feb-10 6:08 
QuestionMessage Removed Pin
18-Feb-10 5:25
tokime18-Feb-10 5:25 
AnswerRe: problem with neural network.. Pin
Richard Andrew x6418-Feb-10 5:34
professionalRichard Andrew x6418-Feb-10 5:34 
AnswerRe: problem with neural network.. Pin
Tim Craig18-Feb-10 7:45
Tim Craig18-Feb-10 7:45 
AnswerRe: problem with neural network.. Pin
Tim Craig19-Feb-10 14:36
Tim Craig19-Feb-10 14:36 
AnswerRe: problem with neural network.. Pin
Stephen Hewitt20-Feb-10 3:30
Stephen Hewitt20-Feb-10 3:30 
QuestionHow to retrive last used on of Installed Application Date Pin
OSHO58018-Feb-10 3:44
OSHO58018-Feb-10 3:44 
AnswerRe: How to retrive last used on of Installed Application Date Pin
rp_suman18-Feb-10 4:53
rp_suman18-Feb-10 4:53 
AnswerRe: How to retrive last used on of Installed Application Date Pin
Randor 19-Feb-10 9:46
professional Randor 19-Feb-10 9:46 
QuestionTree CImageList Drag and Drop Pin
vkpMark18-Feb-10 2:04
vkpMark18-Feb-10 2:04 
AnswerRe: Tree CImageList Drag and Drop [modified] Pin
Eugen Podsypalnikov18-Feb-10 3:09
Eugen Podsypalnikov18-Feb-10 3:09 
QuestionAlternative to memset for kernel mode drivers Pin
Electric Eddy18-Feb-10 0:15
Electric Eddy18-Feb-10 0:15 

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.