Click here to Skip to main content
15,894,410 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OnReceive stop being called Pin
Mark Salsbery7-Feb-07 12:05
Mark Salsbery7-Feb-07 12:05 
GeneralRe: OnReceive stop being called Pin
Mike O'Neill7-Feb-07 15:49
Mike O'Neill7-Feb-07 15:49 
GeneralRe: OnReceive stop being called Pin
jpyp8-Feb-07 9:35
jpyp8-Feb-07 9:35 
QuestionSingleton inheritance Pin
Waldermort6-Feb-07 7:20
Waldermort6-Feb-07 7:20 
AnswerRe: Singleton inheritance Pin
Cedric Moonen6-Feb-07 7:48
Cedric Moonen6-Feb-07 7:48 
GeneralRe: Singleton inheritance Pin
Waldermort6-Feb-07 8:05
Waldermort6-Feb-07 8:05 
GeneralRe: Singleton inheritance Pin
Cedric Moonen6-Feb-07 8:16
Cedric Moonen6-Feb-07 8:16 
GeneralRe: Singleton inheritance Pin
Waldermort6-Feb-07 8:30
Waldermort6-Feb-07 8:30 
GeneralRe: Singleton inheritance Pin
Cedric Moonen6-Feb-07 8:33
Cedric Moonen6-Feb-07 8:33 
GeneralRe: Singleton inheritance Pin
Waldermort6-Feb-07 8:53
Waldermort6-Feb-07 8:53 
QuestionCalling a macro in Excel [modified] Pin
deville756-Feb-07 7:13
deville756-Feb-07 7:13 
QuestionSQL Problem Pin
_anil_6-Feb-07 2:40
_anil_6-Feb-07 2:40 
AnswerRe: SQL Problem Pin
Chris Losinger6-Feb-07 3:04
professionalChris Losinger6-Feb-07 3:04 
GeneralRe: SQL Problem Pin
_anil_6-Feb-07 3:39
_anil_6-Feb-07 3:39 
QuestionRe: SQL Problem Pin
David Crow6-Feb-07 3:30
David Crow6-Feb-07 3:30 
AnswerRe: SQL Problem Pin
_anil_6-Feb-07 3:37
_anil_6-Feb-07 3:37 
QuestionRe: SQL Problem Pin
David Crow6-Feb-07 3:57
David Crow6-Feb-07 3:57 
AnswerRe: SQL Problem Pin
_anil_6-Feb-07 4:37
_anil_6-Feb-07 4:37 
Questionfile manipulation in c Pin
deeps_cute6-Feb-07 2:23
deeps_cute6-Feb-07 2:23 
QuestionRe: file manipulation in c Pin
prasad_som6-Feb-07 2:35
prasad_som6-Feb-07 2:35 
AnswerRe: file manipulation in c Pin
deeps_cute6-Feb-07 3:08
deeps_cute6-Feb-07 3:08 
GeneralRe: file manipulation in c Pin
kakan6-Feb-07 3:22
professionalkakan6-Feb-07 3:22 
GeneralRe: file manipulation in c Pin
Roger Stoltz6-Feb-07 3:28
Roger Stoltz6-Feb-07 3:28 
There is no such thing as "opening a file in a specific format".
If there was, then every file format would have a corresponding C-function for opening it.

It's up to you to know the format of the file you're opening. The only thing you can choose from is whether carriage return and line feed combinations should be translated to a single line feed or not. That's the difference between calling fopen with or without the "t" switch in the mode string.

When you've opened the file with fopen you can use fread for reading the contents of the file and fclose for closing it.

Consider using file operations from MFC framework or STL library instead.


"It's supposed to be hard, otherwise anybody could do it!" - selfquote

GeneralRe: file manipulation in c Pin
prasad_som6-Feb-07 3:36
prasad_som6-Feb-07 3:36 
QuestionTimer/ Multitasking?? Pin
weehau6-Feb-07 2:14
weehau6-Feb-07 2:14 

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.