Click here to Skip to main content
16,008,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalopen, save *.bmp (HELP ME) Pin
mr200310-May-01 4:00
mr200310-May-01 4:00 
GeneralRe: open, save *.bmp (HELP ME) Pin
Tomasz Sowinski10-May-01 7:43
Tomasz Sowinski10-May-01 7:43 
GeneralRe: open, save *.bmp (HELP ME) Pin
Christian Graus10-May-01 14:13
protectorChristian Graus10-May-01 14:13 
QuestionHow to identify a non Text file Pin
Shrini10-May-01 3:57
Shrini10-May-01 3:57 
AnswerRe: How to identify a non Text file Pin
l a u r e n10-May-01 6:41
l a u r e n10-May-01 6:41 
GeneralRe: How to identify a non Text file Pin
Shrini10-May-01 9:05
Shrini10-May-01 9:05 
AnswerRe: How to identify a non Text file Pin
David Fleming10-May-01 7:10
David Fleming10-May-01 7:10 
AnswerRe: How to identify a non Text file Pin
Tomasz Sowinski10-May-01 8:04
Tomasz Sowinski10-May-01 8:04 
I'm afraid that there's no easy answer to this. You can just use some heuristic rules to make an 'educated guess', for example:

- if file contains only characters from 0x20 - 0x7f range, it's probably a text file

- if file contains fultiple null (0) bytes, it's a binary file

- if file has EXE/DLL/OCX extension and begins with 'MZ' or 'PE' bytes, it's probably a binary file

etc.



Tomasz Sowinski -- http://www.shooltz.com.pl
Questionsee any problem with this? Pin
10-May-01 3:19
suss10-May-01 3:19 
AnswerRe: see any problem with this? Pin
Christian Graus10-May-01 14:15
protectorChristian Graus10-May-01 14:15 
GeneralRe: see any problem with this? Pin
10-May-01 22:11
suss10-May-01 22:11 
GeneralUnused code Pin
Mike Eriksson10-May-01 1:03
Mike Eriksson10-May-01 1:03 
GeneralRe: Unused code Pin
10-May-01 2:36
suss10-May-01 2:36 
GeneralRe: Unused code Pin
#realJSOP10-May-01 5:30
professional#realJSOP10-May-01 5:30 
GeneralRe: Unused code Pin
Christian Graus10-May-01 14:16
protectorChristian Graus10-May-01 14:16 
GeneralRe: Unused code Pin
Maxime Labelle10-May-01 6:46
Maxime Labelle10-May-01 6:46 
GeneralRe: Unused code Pin
Tomasz Sowinski10-May-01 8:11
Tomasz Sowinski10-May-01 8:11 
GeneralArray containing different data type Pin
9-May-01 23:20
suss9-May-01 23:20 
GeneralRe: Array containing different data type Pin
Danoo9-May-01 23:38
Danoo9-May-01 23:38 
GeneralRe: Array containing different data type Pin
#realJSOP10-May-01 1:07
professional#realJSOP10-May-01 1:07 
GeneralURGENT: Mouse hook problem, help me Pin
Do Quyet Tien9-May-01 22:20
Do Quyet Tien9-May-01 22:20 
GeneralRe: URGENT: Mouse hook problem, help me Pin
AlexEg10-May-01 0:25
AlexEg10-May-01 0:25 
GeneralThanhx for all your helping, but it didn't work Pin
Do Quyet Tien11-May-01 19:39
Do Quyet Tien11-May-01 19:39 
GeneralMFC tutorial on the web Pin
imran9-May-01 22:19
imran9-May-01 22:19 
GeneralRe: MFC tutorial on the web Pin
David Fleming9-May-01 22:35
David Fleming9-May-01 22:35 

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.