Click here to Skip to main content
16,004,924 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Saving out a Binary Text File Pin
John Aldrich14-Jul-02 6:47
John Aldrich14-Jul-02 6:47 
GeneralRe: Saving out a Binary Text File Pin
Ancient Dragon14-Jul-02 22:39
Ancient Dragon14-Jul-02 22:39 
GeneralRe: Saving out a Binary Text File Pin
Mike Nordell15-Jul-02 6:25
Mike Nordell15-Jul-02 6:25 
GeneralRe: Saving out a Binary Text File Pin
John Aldrich15-Jul-02 9:11
John Aldrich15-Jul-02 9:11 
GeneralRe: Saving out a Binary Text File Pin
Mike Nordell16-Jul-02 8:04
Mike Nordell16-Jul-02 8:04 
GeneralCFile and Linefeed Pin
ColinDavies13-Jul-02 7:21
ColinDavies13-Jul-02 7:21 
GeneralRe: CFile and Linefeed Pin
Jay Beckert13-Jul-02 7:25
Jay Beckert13-Jul-02 7:25 
GeneralRe: CFile and Linefeed Pin
Jay Beckert13-Jul-02 7:45
Jay Beckert13-Jul-02 7:45 
Hey Colin

I just noticed when you open the file the option CFile::typeText is not specified.

MSDN:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_mfc_cfile.3a3a.write.asp

Also:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_mfc_cfile.3a3a.cfile.asp

"CFile::typeText Sets text mode with special processing for carriage return–linefeed pairs (used in derived classes only)."

You should get your carrage returns then. Also carrage return\linefeed is counted as one character. Hope I helped. Smile | :)
GeneralRe: CFile and Linefeed Pin
ColinDavies13-Jul-02 13:34
ColinDavies13-Jul-02 13:34 
GeneralRe: CFile and Linefeed Pin
Michael Dunn13-Jul-02 13:14
sitebuilderMichael Dunn13-Jul-02 13:14 
GeneralRe: CFile and Linefeed Pin
ColinDavies13-Jul-02 13:21
ColinDavies13-Jul-02 13:21 
Generalcrash if I try to save CRect left-very bizarre Pin
ns13-Jul-02 6:40
ns13-Jul-02 6:40 
GeneralRe: crash if I try to save CRect left-very bizarre Pin
Ernest Laurentin13-Jul-02 7:36
Ernest Laurentin13-Jul-02 7:36 
GeneralRe: crash if I try to add a member variable!!! Pin
ns14-Jul-02 2:01
ns14-Jul-02 2:01 
GeneralRe: crash Problem SOlved!! Pin
ns14-Jul-02 2:22
ns14-Jul-02 2:22 
GeneralRe: crash Problem SOlved!! Pin
Ernest Laurentin14-Jul-02 7:23
Ernest Laurentin14-Jul-02 7:23 
QuestionHow to access drived CArray structure Pin
chen13-Jul-02 6:09
chen13-Jul-02 6:09 
AnswerRe: How to access drived CArray structure Pin
Christian Graus13-Jul-02 12:51
protectorChristian Graus13-Jul-02 12:51 
GeneralRe: How to access drived CArray structure Pin
chen13-Jul-02 15:00
chen13-Jul-02 15:00 
GeneralRe: How to access drived CArray structure Pin
Christian Graus13-Jul-02 16:40
protectorChristian Graus13-Jul-02 16:40 
GeneralFilling a triangle with a gradient Pin
Peter Occil13-Jul-02 6:03
Peter Occil13-Jul-02 6:03 
GeneralRe: Filling a triangle with a gradient Pin
Scott H. Settlemier13-Jul-02 6:41
Scott H. Settlemier13-Jul-02 6:41 
GeneralColoring a dialog box within a region Pin
DanYELL13-Jul-02 6:02
DanYELL13-Jul-02 6:02 
GeneralRe: Coloring a dialog box within a region Pin
Michael Dunn13-Jul-02 7:05
sitebuilderMichael Dunn13-Jul-02 7:05 
GeneralRe: Coloring a dialog box within a region Pin
DanYELL13-Jul-02 12:41
DanYELL13-Jul-02 12:41 

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.