Click here to Skip to main content
15,918,003 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Retrieving File type Pin
Gary R. Wheeler5-Sep-05 5:53
Gary R. Wheeler5-Sep-05 5:53 
As a rule, PC text files use carriage return / line feed pairs (\r\n, or 0x0D 0x0A) to delimit lines, while UNIX machines use line feed only (\n 0x0A).

One approach would be to read the file as binary, and search for \r\n pairs. If you don't find them, try treating it as a UNIX file.


Software Zen: delete this;
GeneralRe: Retrieving File type Pin
normanS5-Sep-05 19:39
normanS5-Sep-05 19:39 
GeneralRe: Retrieving File type Pin
Anonymous6-Sep-05 1:13
Anonymous6-Sep-05 1:13 
GeneralRe: Retrieving File type Pin
Gary R. Wheeler6-Sep-05 13:10
Gary R. Wheeler6-Sep-05 13:10 
QuestionHow to import VB interface in VC++ programming?How to link the interface with VC++ codes Pin
ladyscarlet994-Sep-05 20:04
ladyscarlet994-Sep-05 20:04 
AnswerRe: How to import VB interface in VC++ programming?How to link the interface with VC++ codes Pin
MailtoGops5-Sep-05 4:19
MailtoGops5-Sep-05 4:19 
GeneralRe: How to import VB interface in VC++ programming?How to link the interface with VC++ codes Pin
Christian Graus5-Sep-05 16:08
protectorChristian Graus5-Sep-05 16:08 
QuestionProgress Dialog Pin
LighthouseJ4-Sep-05 17:08
LighthouseJ4-Sep-05 17:08 
QuestionRemoving Drivers from a system Pin
Peter Prescher4-Sep-05 16:58
Peter Prescher4-Sep-05 16:58 
AnswerRe: Removing Drivers from a system Pin
Gary R. Wheeler5-Sep-05 5:55
Gary R. Wheeler5-Sep-05 5:55 
GeneralRe: Removing Drivers from a system Pin
Peter Prescher5-Sep-05 9:04
Peter Prescher5-Sep-05 9:04 
QuestionWhere to delete item data with CListCtrl Pin
followait4-Sep-05 16:24
followait4-Sep-05 16:24 
AnswerRe: Where to delete item data with CListCtrl Pin
Jose Lamas Rios4-Sep-05 19:12
Jose Lamas Rios4-Sep-05 19:12 
GeneralThank you. It works. Pin
followait4-Sep-05 19:54
followait4-Sep-05 19:54 
AnswerRe: Where to delete item data with CListCtrl Pin
Kelly Herald4-Sep-05 20:06
Kelly Herald4-Sep-05 20:06 
GeneralRe: Where to delete item data with CListCtrl Pin
Jose Lamas Rios4-Sep-05 20:26
Jose Lamas Rios4-Sep-05 20:26 
GeneralIt doesn't help to delete item data. Pin
followait4-Sep-05 20:43
followait4-Sep-05 20:43 
GeneralRe: It doesn't help to delete item data. Pin
Kelly Herald6-Sep-05 4:07
Kelly Herald6-Sep-05 4:07 
QuestionConnection to SQL? Pin
Member 21004814-Sep-05 16:22
Member 21004814-Sep-05 16:22 
AnswerRe: Connection to SQL? Pin
Steve S5-Sep-05 0:11
Steve S5-Sep-05 0:11 
QuestionPrinting Pin
Ivan Cachicatari4-Sep-05 16:00
Ivan Cachicatari4-Sep-05 16:00 
QuestionHow to determine if a window has scroll bar? Pin
followait4-Sep-05 15:25
followait4-Sep-05 15:25 
AnswerRe: How to determine if a window has scroll bar? Pin
Jose Lamas Rios4-Sep-05 19:22
Jose Lamas Rios4-Sep-05 19:22 
GeneralCListCtrl, any way? Pin
followait4-Sep-05 19:55
followait4-Sep-05 19:55 
GeneralRe: CListCtrl, any way? Pin
Jose Lamas Rios4-Sep-05 20:04
Jose Lamas Rios4-Sep-05 20:04 

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.