Click here to Skip to main content
16,005,138 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDialog Data Exchange Pin
Kash26-Feb-03 5:04
Kash26-Feb-03 5:04 
GeneralRe: Dialog Data Exchange Pin
jhwurmbach26-Feb-03 5:14
jhwurmbach26-Feb-03 5:14 
GeneralRe: Dialog Data Exchange Pin
Kash26-Feb-03 5:34
Kash26-Feb-03 5:34 
GeneralRe: Dialog Data Exchange Pin
jhwurmbach26-Feb-03 5:37
jhwurmbach26-Feb-03 5:37 
GeneralRe: Dialog Data Exchange Pin
palbano26-Feb-03 5:15
palbano26-Feb-03 5:15 
GeneralRe: Dialog Data Exchange Pin
Kash26-Feb-03 5:52
Kash26-Feb-03 5:52 
GeneralRead files... Pin
Dennis L26-Feb-03 4:45
Dennis L26-Feb-03 4:45 
GeneralRe: Read files... Pin
Dana Epp26-Feb-03 6:30
Dana Epp26-Feb-03 6:30 
If you are writing code specific from Windows using the Win32 API, why not use the platform API which encapsulates much more support for file access (especially when wanting to get return codes)? Calls like CreateFile(), WriteFile(), ReadFile() are designed with more functionality (such as DACL support etc) which make it more robust.

With that said, if you really want to use fscanf read this article from MSDN:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_fscanf.2c_.fwscanf.asp[^]

If you scroll down there is an example on how to use fscanf. A note though, if you are wanting to read line by line, fgets() may be more appropriate, and you get the control of defining the max size of the buffer you will read at any one time.

Just a thought. YMMV.

Good luck.

- Dana Cool | :cool:
GeneralCOM and #import question ... Pin
Daniel Strigl26-Feb-03 3:57
Daniel Strigl26-Feb-03 3:57 
GeneralRe: COM and #import question ... Pin
peterchen26-Feb-03 4:04
peterchen26-Feb-03 4:04 
GeneralRe: COM and #import question ... Pin
Stephane Rodriguez.26-Feb-03 4:21
Stephane Rodriguez.26-Feb-03 4:21 
GeneralRe: COM and #import question ... Pin
Daniel Strigl26-Feb-03 20:11
Daniel Strigl26-Feb-03 20:11 
GeneralRe: COM and #import question ... Pin
Stephane Rodriguez.26-Feb-03 4:20
Stephane Rodriguez.26-Feb-03 4:20 
GeneralRe: COM and #import question ... Pin
Daniel Strigl26-Feb-03 20:11
Daniel Strigl26-Feb-03 20:11 
GeneralRe: COM and #import question ... Pin
Giles26-Feb-03 5:53
Giles26-Feb-03 5:53 
GeneralRe: COM and #import question ... Pin
Daniel Strigl26-Feb-03 20:11
Daniel Strigl26-Feb-03 20:11 
GeneralDebugging fun with assembly and user dumps Pin
mediamaster4026-Feb-03 3:19
mediamaster4026-Feb-03 3:19 
GeneralRe: Debugging fun with assembly and user dumps Pin
Tim Smith26-Feb-03 3:33
Tim Smith26-Feb-03 3:33 
GeneralRe: Debugging fun with assembly and user dumps Pin
mediamaster4026-Feb-03 4:05
mediamaster4026-Feb-03 4:05 
GeneralDrawing the caption of the property page (in a property sheet) in a different color... Pin
Joan M26-Feb-03 3:12
professionalJoan M26-Feb-03 3:12 
GeneralRe: Drawing the caption of the property page (in a property sheet) in a different color... Pin
Rage26-Feb-03 4:52
professionalRage26-Feb-03 4:52 
GeneralIt doesn't helped, but thank you... Pin
Joan M26-Feb-03 5:00
professionalJoan M26-Feb-03 5:00 
GeneralList 2.0 checkbox and togglebutton Pin
bennyrascal26-Feb-03 3:12
bennyrascal26-Feb-03 3:12 
GeneralRe: List 2.0 checkbox and togglebutton Pin
Rage26-Feb-03 4:47
professionalRage26-Feb-03 4:47 
GeneralRe: List 2.0 checkbox and togglebutton Pin
bennyrascal26-Feb-03 8:26
bennyrascal26-Feb-03 8:26 

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.