Click here to Skip to main content
15,910,083 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: oci.h file in windows XP Pin
Hamid_RT6-Jul-07 1:14
Hamid_RT6-Jul-07 1:14 
QuestionCDockState::SaveState(xxx) vs register key Pin
neil.kuo5-Jul-07 20:22
neil.kuo5-Jul-07 20:22 
AnswerRe: CDockState::SaveState(xxx) vs register key Pin
Mark Salsbery6-Jul-07 6:27
Mark Salsbery6-Jul-07 6:27 
Questionhow to pass data in a file after reading Pin
NalBH5-Jul-07 20:20
NalBH5-Jul-07 20:20 
AnswerRe: how to pass data in a file after reading Pin
CPallini5-Jul-07 20:28
mveCPallini5-Jul-07 20:28 
QuestionRe: how to pass data in a file after reading Pin
NalBH6-Jul-07 2:30
NalBH6-Jul-07 2:30 
QuestionRe: how to pass data in a file after reading Pin
CPallini6-Jul-07 2:58
mveCPallini6-Jul-07 2:58 
AnswerRe: how to pass data in a file after reading Pin
David Crow6-Jul-07 3:03
David Crow6-Jul-07 3:03 
Your code snippet likely doesn't work because: 1) you are not initializing noc, and 2) you are doing nothing with ch. Try:

noc = 0;
while (1)
{
    ch = fgetc(fp);
    if (EOF == ch)
        break;
 
    test[noc] = ch;
    noc++
}
Make sense?


"A good athlete is the result of a good and worthy opponent." - David Crow

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


QuestionFunction-style cast Pin
tom groezer5-Jul-07 20:03
tom groezer5-Jul-07 20:03 
JokeHey Tom, are you doing a survey? Pin
CPallini5-Jul-07 20:16
mveCPallini5-Jul-07 20:16 
GeneralRe: Hey Tom, are you doing a survey? Pin
Mark Salsbery5-Jul-07 21:12
Mark Salsbery5-Jul-07 21:12 
GeneralRe: Hey Tom, are you doing a survey? Pin
tom groezer5-Jul-07 21:17
tom groezer5-Jul-07 21:17 
GeneralRe: Hey Tom, are you doing a survey? Pin
Mark Salsbery6-Jul-07 5:07
Mark Salsbery6-Jul-07 5:07 
GeneralRe: Hey Tom, are you doing a survey? Pin
toxcct5-Jul-07 23:38
toxcct5-Jul-07 23:38 
GeneralRe: Hey Tom, are you doing a survey? Pin
David Crow6-Jul-07 3:06
David Crow6-Jul-07 3:06 
AnswerRe: Function-style cast Pin
Nuxser5-Jul-07 20:47
Nuxser5-Jul-07 20:47 
QuestionStrange VC++ Debugger behavior Pin
Axonn Echysttas5-Jul-07 19:45
Axonn Echysttas5-Jul-07 19:45 
AnswerRe: Strange VC++ Debugger behavior Pin
Axonn Echysttas5-Jul-07 20:25
Axonn Echysttas5-Jul-07 20:25 
AnswerRe: Strange VC++ Debugger behavior Pin
CPallini5-Jul-07 20:26
mveCPallini5-Jul-07 20:26 
GeneralRe: Strange VC++ Debugger behavior Pin
Axonn Echysttas5-Jul-07 20:59
Axonn Echysttas5-Jul-07 20:59 
JokeBut you had an advantage... Pin
CPallini5-Jul-07 22:14
mveCPallini5-Jul-07 22:14 
QuestionError in open() function in CDaoDatabase class of MFC-> Unhandled exception in myProject.exe(DAO360.DLL):0xc0000005:Access Pin
aaaan5-Jul-07 18:45
aaaan5-Jul-07 18:45 
AnswerRe: Error in open() function in CDaoDatabase class of MFC-> Unhandled exception in myProject.exe(DAO360.DLL):0xc0000005:Access [modified] Pin
Mark Salsbery5-Jul-07 18:56
Mark Salsbery5-Jul-07 18:56 
GeneralRe: Error in open() function in CDaoDatabase class of MFC-> Unhandled exception in myProject.exe(DAO360.DLL):0xc0000005:Access Pin
Stephen Hewitt5-Jul-07 19:31
Stephen Hewitt5-Jul-07 19:31 
GeneralRe: Error in open() function in CDaoDatabase class of MFC-> Unhandled exception in myProject.exe(DAO360.DLL):0xc0000005:Access Pin
Mark Salsbery5-Jul-07 19:37
Mark Salsbery5-Jul-07 19:37 

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.