Click here to Skip to main content
16,018,818 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionUSB gamepad commands in C++ Pin
xkrja23-Aug-06 4:47
xkrja23-Aug-06 4:47 
AnswerRe: USB gamepad commands in C++ Pin
Matt Godbolt23-Aug-06 4:55
Matt Godbolt23-Aug-06 4:55 
AnswerRe: USB gamepad commands in C++ Pin
Cedric Moonen23-Aug-06 4:59
Cedric Moonen23-Aug-06 4:59 
Questionhelp on dialog bar Pin
GANsJob23-Aug-06 4:23
GANsJob23-Aug-06 4:23 
AnswerRe: help on dialog bar Pin
koloporanistka23-Aug-06 9:06
koloporanistka23-Aug-06 9:06 
GeneralRe: help on dialog bar Pin
jk chan23-Aug-06 15:00
jk chan23-Aug-06 15:00 
QuestionCrazy fgets stuff [modified] Pin
stevelam23-Aug-06 4:15
stevelam23-Aug-06 4:15 
AnswerRe: Crazy fgets stuff Pin
Zac Howland23-Aug-06 4:27
Zac Howland23-Aug-06 4:27 
You said another part of your program is writing the file?

Here are a few things to try:

- Initialize your string: char filename[100] = {0};
- Set the file cursor to the beginning explicitly: fseekg(pFile, 0, SEEK_SET);
- Make sure that the file is not currently open by the section of code that is suppose to be writing to it. You may be running into a race condition if you have 2 threads (for example) where thread 1 is writing to the file, but thread 2 is already trying to read from it before the write is complete.

If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week

Zac

GeneralRe: Crazy fgets stuff Pin
stevelam23-Aug-06 4:52
stevelam23-Aug-06 4:52 
GeneralRe: Crazy fgets stuff Pin
Zac Howland23-Aug-06 5:32
Zac Howland23-Aug-06 5:32 
AnswerRe: Crazy fgets stuff Pin
Rage23-Aug-06 4:51
professionalRage23-Aug-06 4:51 
GeneralRe: Crazy fgets stuff Pin
stevelam23-Aug-06 4:53
stevelam23-Aug-06 4:53 
GeneralRe: Crazy fgets stuff Pin
Rage23-Aug-06 5:05
professionalRage23-Aug-06 5:05 
GeneralRe: Crazy fgets stuff Pin
stevelam23-Aug-06 5:30
stevelam23-Aug-06 5:30 
AnswerRe: Crazy fgets stuff Pin
G_S23-Aug-06 5:12
G_S23-Aug-06 5:12 
AnswerRe: Crazy fgets stuff Pin
toxcct23-Aug-06 5:54
toxcct23-Aug-06 5:54 
QuestionDiffernce between Debug mode & Release mode Pin
cybersadhu23-Aug-06 3:45
cybersadhu23-Aug-06 3:45 
AnswerRe: Differnce between Debug mode & Release mode Pin
toxcct23-Aug-06 3:49
toxcct23-Aug-06 3:49 
AnswerRe: Differnce between Debug mode & Release mode [modified] Pin
Chris Losinger23-Aug-06 4:03
professionalChris Losinger23-Aug-06 4:03 
AnswerRe: Differnce between Debug mode & Release mode Pin
Hamid Taebi24-Aug-06 0:36
professionalHamid Taebi24-Aug-06 0:36 
AnswerRe: Differnce between Debug mode & Release mode Pin
MayankT24-Aug-06 17:43
MayankT24-Aug-06 17:43 
QuestionOdd behavior! Pin
Ed K23-Aug-06 3:24
Ed K23-Aug-06 3:24 
QuestionHow to override the control Pin
reddy harish23-Aug-06 3:19
reddy harish23-Aug-06 3:19 
AnswerRe: How to override the control Pin
_AnsHUMAN_ 23-Aug-06 3:21
_AnsHUMAN_ 23-Aug-06 3:21 
AnswerRe: How to override the control Pin
Wes Aday23-Aug-06 4:11
professionalWes Aday23-Aug-06 4:11 

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.