Click here to Skip to main content
15,920,896 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Menu Pin
Antony M Kancidrowski7-Apr-04 2:12
Antony M Kancidrowski7-Apr-04 2:12 
Generalavenger_sb25//read, write data files Pin
dairiseky5-Apr-04 23:53
dairiseky5-Apr-04 23:53 
GeneralRe: avenger_sb25//read, write data files Pin
Steve S6-Apr-04 1:21
Steve S6-Apr-04 1:21 
GeneralRe: avenger_sb25//read, write data files Pin
avenger_sb256-Apr-04 11:15
avenger_sb256-Apr-04 11:15 
GeneralRe: avenger_sb25//read, write data files Pin
David Crow6-Apr-04 2:11
David Crow6-Apr-04 2:11 
GeneralRe: why binary? Pin
dairiseky6-Apr-04 2:32
dairiseky6-Apr-04 2:32 
GeneralRe: why binary? Pin
David Crow6-Apr-04 3:27
David Crow6-Apr-04 3:27 
GeneralRe: avenger_sb25//read, write data files Pin
avenger_sb256-Apr-04 11:12
avenger_sb256-Apr-04 11:12 
Sorry! my mistake. Thanks a lot to Steve for clearing the doubts.
You need not even include the (char*) part in read and write functions.

Only outfile.write (&objectA, sizeof(objectA)); should also work.

Keep in ur mind the things told by Steve about Pointers.
Avoid including pointers in classes that you have to write to the disk. But as far as simple data types and arrays are concerned, it would do just fine.

I hope that you know by now "why binary?"
Sorry again for the mistake on my part. thx steve



Remember... testing & debugging are always part of programming ...so exterminate those stinking bugs
GeneralRe: avenger_sb25//read, write data files Pin
dairiseky6-Apr-04 23:48
dairiseky6-Apr-04 23:48 
GeneralRe: avenger_sb25//read, write data files Pin
Anonymous7-Apr-04 3:27
Anonymous7-Apr-04 3:27 
GeneralRe: avenger_sb25//read, write data files Pin
avenger_sb257-Apr-04 3:35
avenger_sb257-Apr-04 3:35 
GeneralRe: avenger_sb25//read, write data files Pin
dairiseky7-Apr-04 5:32
dairiseky7-Apr-04 5:32 
GeneralOracle Stored Procedure Problem in .NET Pin
Anonymous5-Apr-04 23:20
Anonymous5-Apr-04 23:20 
QuestionGDI+ question: Bitmap:FromFile, how to detect non-existent image file? Pin
Indrawati5-Apr-04 22:39
Indrawati5-Apr-04 22:39 
AnswerRe: GDI+ question: Bitmap:FromFile, how to detect non-existent image file? Pin
Mike Dimmick5-Apr-04 23:43
Mike Dimmick5-Apr-04 23:43 
AnswerRe: GDI+ question: Bitmap:FromFile, how to detect non-existent image file? Pin
JonCage6-Apr-04 1:37
JonCage6-Apr-04 1:37 
GeneralWindows idle time Pin
Florin Ochiana5-Apr-04 22:28
Florin Ochiana5-Apr-04 22:28 
GeneralRe: Windows idle time Pin
Rage5-Apr-04 22:35
professionalRage5-Apr-04 22:35 
GeneralRe: Windows idle time Pin
Florin Ochiana5-Apr-04 22:43
Florin Ochiana5-Apr-04 22:43 
GeneralRe: Windows idle time Pin
Rage5-Apr-04 22:48
professionalRage5-Apr-04 22:48 
GeneralRe: Windows idle time Pin
Florin Ochiana5-Apr-04 22:52
Florin Ochiana5-Apr-04 22:52 
GeneralRe: Windows idle time Pin
avenger_sb255-Apr-04 23:25
avenger_sb255-Apr-04 23:25 
GeneralRe: Windows idle time Pin
Rage6-Apr-04 0:46
professionalRage6-Apr-04 0:46 
GeneralRe: Windows idle time Pin
Antony M Kancidrowski6-Apr-04 1:37
Antony M Kancidrowski6-Apr-04 1:37 
GeneralRe: Windows idle time Pin
David Crow6-Apr-04 2:15
David Crow6-Apr-04 2:15 

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.