Click here to Skip to main content
15,903,388 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: overloading bug in VC++6?? Pin
nm_11420-Mar-05 17:44
nm_11420-Mar-05 17:44 
AnswerRe: overloading bug in VC++6?? Pin
cmk21-Mar-05 1:55
cmk21-Mar-05 1:55 
GeneralIPC - win32 Pin
mpapeo20-Mar-05 12:52
mpapeo20-Mar-05 12:52 
GeneralRe: IPC - win32 Pin
shiraztk20-Mar-05 23:36
shiraztk20-Mar-05 23:36 
GeneralRe: IPC - win32 Pin
mpapeo21-Mar-05 8:51
mpapeo21-Mar-05 8:51 
GeneralRe: IPC - win32 Pin
shiraztk21-Mar-05 19:03
shiraztk21-Mar-05 19:03 
Questionfgets?? Pin
Larsson20-Mar-05 10:23
Larsson20-Mar-05 10:23 
AnswerRe: fgets?? Pin
John R. Shaw20-Mar-05 10:57
John R. Shaw20-Mar-05 10:57 
Unless I needed to read one line at a time, I would just:

1) Open file for read only.
2) Call _filelength to determine the amount of memory needed.
3) Allocate a buffer large enough to hold it.
4) Call fread, to read the entire text file into the buffer.
5) Close the file.

Now that I have it in a buffer I can do what ever I what with the data.

Thats the simplis way.

INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
AnswerRe: fgets?? Pin
hauptman20-Mar-05 11:21
hauptman20-Mar-05 11:21 
GeneralRe: fgets?? Pin
David Crow21-Mar-05 4:21
David Crow21-Mar-05 4:21 
AnswerRe: fgets?? Pin
Christian Graus20-Mar-05 11:58
protectorChristian Graus20-Mar-05 11:58 
AnswerRe: fgets?? Pin
Aamir Butt21-Mar-05 0:18
Aamir Butt21-Mar-05 0:18 
QuestionHow do I call a Child window from a Dialog? Pin
TMaxwell8620-Mar-05 10:21
TMaxwell8620-Mar-05 10:21 
AnswerRe: How do I call a Child window from a Dialog? Pin
Renjith Ramachandran20-Mar-05 15:57
Renjith Ramachandran20-Mar-05 15:57 
GeneralAccessing the gui controls of other applications Pin
modshah_one20-Mar-05 7:08
modshah_one20-Mar-05 7:08 
GeneralRe: Accessing the gui controls of other applications Pin
David Crow21-Mar-05 4:26
David Crow21-Mar-05 4:26 
GeneralRe: Accessing the gui controls of other applications Pin
modshah_one21-Mar-05 7:12
modshah_one21-Mar-05 7:12 
GeneralRe: Accessing the gui controls of other applications Pin
David Crow21-Mar-05 7:21
David Crow21-Mar-05 7:21 
GeneralPLBYTE to int * Pin
samhwang20-Mar-05 6:41
samhwang20-Mar-05 6:41 
GeneralRe: PLBYTE to int * Pin
John R. Shaw20-Mar-05 11:10
John R. Shaw20-Mar-05 11:10 
GeneralRe: PLBYTE to int * Pin
samhwang20-Mar-05 14:45
samhwang20-Mar-05 14:45 
GeneralRe: PLBYTE to int * Pin
David Crow21-Mar-05 4:28
David Crow21-Mar-05 4:28 
GeneralRe: PLBYTE to int * Pin
John R. Shaw30-Mar-05 6:00
John R. Shaw30-Mar-05 6:00 
Generalamstream.h Pin
Verolix20-Mar-05 6:15
Verolix20-Mar-05 6:15 
GeneralRe: amstream.h Pin
Christian Graus20-Mar-05 12:01
protectorChristian Graus20-Mar-05 12:01 

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.