Click here to Skip to main content
16,006,013 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalread HTML file Pin
Member 62216414-Oct-03 4:58
Member 62216414-Oct-03 4:58 
GeneralRe: read HTML file Pin
valikac14-Oct-03 5:59
valikac14-Oct-03 5:59 
Generalproblems when reading saving/loading a registry key in WinXP Pin
wfettich14-Oct-03 4:38
wfettich14-Oct-03 4:38 
Question(DirectShow) AVI player using CFrameWnd class ??? Pin
Saurabh_Delhi14-Oct-03 4:26
Saurabh_Delhi14-Oct-03 4:26 
Generalneed some codeproject c++ expertise... Pin
joshfl14-Oct-03 4:02
joshfl14-Oct-03 4:02 
GeneralRe: need some codeproject c++ expertise... Pin
jhwurmbach14-Oct-03 4:56
jhwurmbach14-Oct-03 4:56 
GeneralRe: need some codeproject c++ expertise... Pin
joshfl14-Oct-03 6:03
joshfl14-Oct-03 6:03 
GeneralRe: need some codeproject c++ expertise... Pin
igor196014-Oct-03 8:27
igor196014-Oct-03 8:27 
2 possible cases:

1. As I understand you have 2 processes accessing the files: first process writes the file and your program reads the file -- therefore: You maybe failing here:
if ( (input = fopen( fia[ji].GetFilePath(), "r" ) ) == NULL ) <br />
{<br />
//printf( "Could not open file.......%s\n", fia[ji].GetFilePath() ); <br />
return 0;<br />
}

Because, you return ==> your process exits;

2. Your char c1[6000]; // Text is declared as 6000 bytes long. Therefore, in the following statements:
numread = fread( c1, sizeof( char ), sizeof(c1), input );<br />
c1[++numread] = '\0'; // null terminate

You maybe getting Buffer overrun if file size is larger then 6000 bytes.

I



"...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..."
Me
GeneralRe: need some codeproject c++ expertise... Pin
joshfl14-Oct-03 10:27
joshfl14-Oct-03 10:27 
GeneralRe: need some codeproject c++ expertise... Pin
David Crow14-Oct-03 5:43
David Crow14-Oct-03 5:43 
GeneralRe: need some codeproject c++ expertise... Pin
joshfl14-Oct-03 6:10
joshfl14-Oct-03 6:10 
GeneralRe: need some codeproject c++ expertise... Pin
Abin14-Oct-03 14:38
Abin14-Oct-03 14:38 
GeneralRe: need some codeproject c++ expertise... Pin
joshfl15-Oct-03 8:13
joshfl15-Oct-03 8:13 
GeneralRe: need some codeproject c++ expertise... Pin
PremL14-Oct-03 5:51
PremL14-Oct-03 5:51 
GeneralRe: need some codeproject c++ expertise... Pin
joshfl14-Oct-03 6:12
joshfl14-Oct-03 6:12 
GeneralRe: need some codeproject c++ expertise... Pin
joshfl14-Oct-03 10:23
joshfl14-Oct-03 10:23 
GeneralRe: need some codeproject c++ expertise... Pin
Xiangyang Liu 刘向阳14-Oct-03 7:09
Xiangyang Liu 刘向阳14-Oct-03 7:09 
QuestionHow to improve bitmap drawing quality? Pin
Member 47752414-Oct-03 3:43
Member 47752414-Oct-03 3:43 
GeneralCreating an unknown number of checkboxes Pin
b_girl14-Oct-03 3:42
b_girl14-Oct-03 3:42 
GeneralRe: Creating an unknown number of checkboxes Pin
b_girl14-Oct-03 3:48
b_girl14-Oct-03 3:48 
GeneralRe: Creating an unknown number of checkboxes Pin
Terry O'Nolley14-Oct-03 5:21
Terry O'Nolley14-Oct-03 5:21 
GeneralRe: Creating an unknown number of checkboxes Pin
David Crow14-Oct-03 6:55
David Crow14-Oct-03 6:55 
Questionhow to trigger some action by jus selecting the text? Pin
ramya8314-Oct-03 1:44
ramya8314-Oct-03 1:44 
AnswerRe: how to trigger some action by jus selecting the text? Pin
David Crow14-Oct-03 3:08
David Crow14-Oct-03 3:08 
AnswerRe: how to trigger some action by jus selecting the text? Pin
jhwurmbach14-Oct-03 3:22
jhwurmbach14-Oct-03 3:22 

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.