Click here to Skip to main content
15,892,809 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCustom owned control going inactive Pin
Graham Reeds23-Aug-06 4:49
Graham Reeds23-Aug-06 4:49 
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 
I am using this code:

	FILE * pFile;<br />
    char filename [100];<br />
<br />
    pFile = fopen ("\\Settings\\temp.txt" , "rt");<br />
    if (pFile == NULL) perror ("Error opening file");<br />
    else <br />
	{<br />
     fgets (filename , 100 , pFile);<br />
     fclose (pFile);<br />
    }


to get a filename that another part of my program has written. However whatever I put in the text file my program reads 100 Í characters. Now when I open up the text file myself it shows exactly what I want, i.e. not that Smile | :) This is driving me slightly crazy so any help would be great.

P.S. If anyone wants the text file I am quite willing to e-mail it to you.



-- modified at 10:15 Wednesday 23rd August, 2006
AnswerRe: Crazy fgets stuff Pin
Zac Howland23-Aug-06 4:27
Zac Howland23-Aug-06 4:27 
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 &amp; 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_RT24-Aug-06 0:36
Hamid_RT24-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 

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.