Click here to Skip to main content
15,892,809 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Service description??? Pin
rdhamija17-Jan-05 23:24
rdhamija17-Jan-05 23:24 
QuestionHow to create a new web browser object from an existing object sharing instance ? Pin
Yariv17-Jan-05 21:00
Yariv17-Jan-05 21:00 
GeneralRegular Expressions Pin
Amit Mulay17-Jan-05 20:33
Amit Mulay17-Jan-05 20:33 
GeneralRe: Regular Expressions Pin
User 665817-Jan-05 21:00
User 665817-Jan-05 21:00 
GeneralDetermine text file or Binary file Pin
mjvalan17-Jan-05 20:25
mjvalan17-Jan-05 20:25 
GeneralRe: Determine text file or Binary file Pin
basementman18-Jan-05 4:18
basementman18-Jan-05 4:18 
GeneralRe: Determine text file or Binary file Pin
David Crow18-Jan-05 4:21
David Crow18-Jan-05 4:21 
GeneralRe: Determine text file or Binary file Pin
digwizfox18-Jan-05 8:22
digwizfox18-Jan-05 8:22 
I don't think so. This wouldn't make any sense to me. After all, a binary file appears as garbage in a text editor because the bytes will not map to ascii to form any kind of intelligible sentence in any language. The text editor doesn't care if the file you tell it to open is binary or not. It will just read the file and try to map the bytes into ascii and display whatever random characters the data happens to map to. If there were an automatic function for doing this, the people that wrote notepad and wordpad probably would have popped up an warning message reading, "warning, processing binary file"; or something like that.

All files are binary files, in my mind. It just so happens that a text file is a special kind of binary file where each byte maps to an appropriate ascii symbol to form intelligible letters/numbers/symbols. Even the carriage returns and line feeds are simply bytes of data that map to the appropriate ascii symbol. I think writing an algorithm to guess if something is good enough to be a text file would be awfully difficult if not impossible. You'd have to read each byte in and make a lot of assumptions about the data.
GeneralCannot open include file: 'Iphlpapi.h': No such file or directory Pin
vc-programmer-17-Jan-05 20:25
vc-programmer-17-Jan-05 20:25 
GeneralRe: Cannot open include file: 'Iphlpapi.h': No such file or directory Pin
Aamir Butt17-Jan-05 23:12
Aamir Butt17-Jan-05 23:12 
GeneralRe: Cannot open include file: 'Iphlpapi.h': No such file or directory Pin
Antony M Kancidrowski18-Jan-05 2:18
Antony M Kancidrowski18-Jan-05 2:18 
GeneralRe: Cannot open include file: 'Iphlpapi.h': No such file or directory Pin
Selvam R18-Jan-05 2:57
professionalSelvam R18-Jan-05 2:57 
GeneralStreaming Media Player Pin
dkmorris199917-Jan-05 19:03
dkmorris199917-Jan-05 19:03 
GeneralRe: Streaming Media Player Pin
Jetli Jerry18-Jan-05 0:32
Jetli Jerry18-Jan-05 0:32 
QuestionHow to create C++ DLL in Visual Studio.Net 2003 Pin
webdevelopex17-Jan-05 19:02
webdevelopex17-Jan-05 19:02 
AnswerRe: How to create C++ DLL in Visual Studio.Net 2003 Pin
Selvam R17-Jan-05 23:46
professionalSelvam R17-Jan-05 23:46 
Generalnetwork device enumeration Pin
vc-programmer-17-Jan-05 17:16
vc-programmer-17-Jan-05 17:16 
GeneralRe: network device enumeration Pin
David Crow18-Jan-05 4:27
David Crow18-Jan-05 4:27 
Generalreceiving power management events in a service Pin
dilipjoseph17-Jan-05 16:50
dilipjoseph17-Jan-05 16:50 
GeneralRe: receiving power management events in a service Pin
cmk17-Jan-05 19:29
cmk17-Jan-05 19:29 
GeneralStatic text... Pin
dSolariuM17-Jan-05 16:04
dSolariuM17-Jan-05 16:04 
GeneralRegEnumValue example Pin
jonavon blakly17-Jan-05 15:32
jonavon blakly17-Jan-05 15:32 
GeneralRe: RegEnumValue example Pin
ThatsAlok17-Jan-05 18:04
ThatsAlok17-Jan-05 18:04 
GeneralRe: RegEnumValue example Pin
jonavon blakly18-Jan-05 15:06
jonavon blakly18-Jan-05 15:06 
GeneralCreate thumbnail of first page of PDF Pin
Defenestration17-Jan-05 14:51
Defenestration17-Jan-05 14:51 

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.