Click here to Skip to main content
15,914,419 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCSocket possible bug on win2k Pin
ucs3-Jun-03 12:32
ucs3-Jun-03 12:32 
GeneralRe: CSocket possible bug on win2k Pin
olinn3-Jun-03 17:30
olinn3-Jun-03 17:30 
GeneralRe: CSocket possible bug on win2k Pin
ucs3-Jun-03 23:57
ucs3-Jun-03 23:57 
GeneralRe: CSocket possible bug on win2k Pin
olinn4-Jun-03 0:59
olinn4-Jun-03 0:59 
GeneralEdit controls and fonts Pin
Steven M Hunt3-Jun-03 11:41
Steven M Hunt3-Jun-03 11:41 
GeneralRe: Edit controls and fonts Pin
Michael Pauli3-Jun-03 13:15
Michael Pauli3-Jun-03 13:15 
GeneralThanks! Pin
Steven M Hunt3-Jun-03 14:33
Steven M Hunt3-Jun-03 14:33 
GeneralTrouble reading from a file. Pin
rassad3-Jun-03 11:33
rassad3-Jun-03 11:33 
I have built a program in using VC++ 6.0 that will parse out the URL's from an AOL .pfc(personal filling cabient) file. The .pfc is full of garbage(terminators, little boxes kinda looks like encryption, misc chars, and URL's) The program works just fine on most .pfc files. The problem Im having with some .pfc files are that the program will not read the entire file. I have reason to believe that my troubles lie in the eof(end of file) terminating condition. Here is the code that reads in the file char by char adding it to a string:

if(! inStream.eof()) {<br />
<br />
    if(! iscntrl(cSymbol))<br />
        m_strBeforeParse += (CString)cSymbol;<br />
<br />
    inStream.get(cSymbol);<br />
}


For some reason the eof function is returning "true" when it reaches a certain part of the file. This certain part of the file is the little boxes in the file that I described earlier as what I thought looked like encyrption. If I erase these little boxes, I can read whole filwe just fine. If anyone has any ideas Id be greatful to hear them.
GeneralRe: Trouble reading from a file. Pin
Peter Weyzen3-Jun-03 11:44
Peter Weyzen3-Jun-03 11:44 
GeneralRe: Trouble reading from a file. Pin
Dean Goodman3-Jun-03 11:51
Dean Goodman3-Jun-03 11:51 
GeneralRe: Trouble reading from a file. Pin
Anonymous3-Jun-03 13:07
Anonymous3-Jun-03 13:07 
QuestionWhat is Callback Function? Pin
Anonymous3-Jun-03 10:43
Anonymous3-Jun-03 10:43 
AnswerRe: What is Callback Function? Pin
act_x3-Jun-03 12:41
act_x3-Jun-03 12:41 
AnswerRe: What is Callback Function? Pin
ucs3-Jun-03 12:43
ucs3-Jun-03 12:43 
QuestionHow to make a dynamic modal dialog. Pin
Wormhole52303-Jun-03 10:02
Wormhole52303-Jun-03 10:02 
AnswerRe: How to make a dynamic modal dialog. Pin
Joan M3-Jun-03 22:44
professionalJoan M3-Jun-03 22:44 
GeneralRe: How to make a dynamic modal dialog. Pin
Wormhole52303-Jun-03 23:00
Wormhole52303-Jun-03 23:00 
GeneralRe: How to make a dynamic modal dialog. Pin
Joan M3-Jun-03 23:17
professionalJoan M3-Jun-03 23:17 
AnswerRe: How to make a dynamic modal dialog. Pin
Wormhole52304-Jun-03 22:35
Wormhole52304-Jun-03 22:35 
QuestionCImage::StretchBlt does not work!? Pin
schaereran@gmx.net3-Jun-03 9:36
schaereran@gmx.net3-Jun-03 9:36 
AnswerRe: CImage::StretchBlt does not work!? Pin
RaajaOfSelf4-Jun-03 19:10
RaajaOfSelf4-Jun-03 19:10 
GeneralRe: CImage::StretchBlt does not work!? Pin
schaereran@gmx.net5-Jun-03 0:36
schaereran@gmx.net5-Jun-03 0:36 
QuestionHow do i create a random number? Pin
Redeemer-dk3-Jun-03 9:36
Redeemer-dk3-Jun-03 9:36 
AnswerRe: How do i create a random number? Pin
Chris Losinger3-Jun-03 9:53
professionalChris Losinger3-Jun-03 9:53 
GeneralRe: How do i create a random number? Pin
Dean Goodman3-Jun-03 11:38
Dean Goodman3-Jun-03 11:38 

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.