Click here to Skip to main content
15,899,124 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Displaying image on full screen Pin
Vancouver29-Nov-05 20:15
Vancouver29-Nov-05 20:15 
Questionvisual basic and access Pin
RiNaZaiNoN23-Nov-05 15:24
RiNaZaiNoN23-Nov-05 15:24 
QuestionSort Array of Objects Pin
kenexcelon23-Nov-05 14:23
kenexcelon23-Nov-05 14:23 
AnswerRe: Sort Array of Objects Pin
Christian Graus23-Nov-05 14:37
protectorChristian Graus23-Nov-05 14:37 
QuestionEdit Control flashes Pin
LeeeNN23-Nov-05 13:51
LeeeNN23-Nov-05 13:51 
QuestionEmbedded browser control leaks handles? Pin
dandy7223-Nov-05 11:25
dandy7223-Nov-05 11:25 
Questionfile searching problem Pin
Binary011023-Nov-05 8:40
Binary011023-Nov-05 8:40 
AnswerRe: file searching problem Pin
Curtis Schlak.23-Nov-05 9:57
Curtis Schlak.23-Nov-05 9:57 
Binary,

Your problem exists here:

while (fin >> (search))
{
  count++;
}


You are reading a "word" from your file and storing it in the string that you declared to hold your search term. Instead, reuse the filename variable or declare a new one.

while (fin >> (filename))
{
  // If the "word" in filename equals the
  // word in search, then
  count++;
}



"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty

-- modified at 16:04 Wednesday 23rd November, 2005
QuestionDefining a target architecture Pin
Demian Panello23-Nov-05 8:20
Demian Panello23-Nov-05 8:20 
QuestionRegistration or Login Screen in an SDI application Pin
sdancer7523-Nov-05 7:22
sdancer7523-Nov-05 7:22 
AnswerRe: Registration or Login Screen in an SDI application Pin
Marc Soleda23-Nov-05 20:47
Marc Soleda23-Nov-05 20:47 
AnswerRe: Registration or Login Screen in an SDI application Pin
Cool Ju24-Nov-05 0:37
Cool Ju24-Nov-05 0:37 
QuestionMFC and Global Variables :How can i access them ? Pin
sdancer7523-Nov-05 7:19
sdancer7523-Nov-05 7:19 
AnswerRe: MFC and Global Variables :How can i access them ? Pin
BlackDice23-Nov-05 11:08
BlackDice23-Nov-05 11:08 
AnswerRe: MFC and Global Variables :How can i access them ? Pin
Christian Graus23-Nov-05 11:28
protectorChristian Graus23-Nov-05 11:28 
AnswerRe: MFC and Global Variables :How can i access them ? Pin
ThatsAlok28-Nov-05 17:39
ThatsAlok28-Nov-05 17:39 
QuestionHow to set LPT ? to read and write byte Pin
quangpk23-Nov-05 5:33
quangpk23-Nov-05 5:33 
AnswerRe: How to set LPT ? to read and write byte Pin
khan++23-Nov-05 23:08
khan++23-Nov-05 23:08 
GeneralRe: How to set LPT ? to read and write byte Pin
quangpk1-Dec-05 6:35
quangpk1-Dec-05 6:35 
QuestionHow to read and write data to File's section Pin
Loc Milkyway23-Nov-05 4:51
Loc Milkyway23-Nov-05 4:51 
AnswerRe: How to read and write data to File's section Pin
ThatsAlok28-Nov-05 17:06
ThatsAlok28-Nov-05 17:06 
GeneralRe: How to read and write data to File's section Pin
Loc Milkyway29-Nov-05 2:42
Loc Milkyway29-Nov-05 2:42 
GeneralRe: How to read and write data to File's section Pin
ThatsAlok29-Nov-05 17:41
ThatsAlok29-Nov-05 17:41 
GeneralRe: Thank you Pin
Loc Milkyway30-Nov-05 3:25
Loc Milkyway30-Nov-05 3:25 
QuestionMouse click Simulation ? Pin
kendao23-Nov-05 3:50
kendao23-Nov-05 3:50 

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.