Click here to Skip to main content
16,011,585 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Edit box and cursor position Pin
22491719-Nov-04 0:57
22491719-Nov-04 0:57 
GeneralSaving variables with odd bit sizes Pin
rikkemus19-Nov-04 0:25
rikkemus19-Nov-04 0:25 
GeneralRe: Saving variables with odd bit sizes Pin
Jack Puppy19-Nov-04 0:32
Jack Puppy19-Nov-04 0:32 
GeneralRe: Saving variables with odd bit sizes Pin
Steve S19-Nov-04 0:43
Steve S19-Nov-04 0:43 
GeneralRe: Saving variables with odd bit sizes Pin
rikkemus19-Nov-04 1:16
rikkemus19-Nov-04 1:16 
GeneralRe: Saving variables with odd bit sizes Pin
Bob Flynn19-Nov-04 1:14
Bob Flynn19-Nov-04 1:14 
GeneralRe: Saving variables with odd bit sizes Pin
Henry miller19-Nov-04 2:14
Henry miller19-Nov-04 2:14 
GeneralRe: Saving variables with odd bit sizes Pin
Bob Flynn19-Nov-04 2:34
Bob Flynn19-Nov-04 2:34 
This is another good way, and it is used in the "real world".

What makes it not portable is the fact that some compilers will store the bit field with the first data element starting at the LSB while another will place the first data element starting at the MSB.

So you would perhaps need header information to indicate the structure so that your code, no matter what platform it is compiled on, will properly interpret data that you read from a file.

BTW, I would use this method for simplicity before the method I suggested above.
GeneralRe: Saving variables with odd bit sizes Pin
rikkemus19-Nov-04 2:55
rikkemus19-Nov-04 2:55 
GeneralRe: Saving variables with odd bit sizes Pin
Bob Flynn19-Nov-04 3:53
Bob Flynn19-Nov-04 3:53 
GeneralRe: Saving variables with odd bit sizes Pin
Henry miller19-Nov-04 6:03
Henry miller19-Nov-04 6:03 
GeneralRe: Saving variables with odd bit sizes Pin
rikkemus19-Nov-04 12:21
rikkemus19-Nov-04 12:21 
Generalnewbie needs help Pin
marinme19-Nov-04 0:19
marinme19-Nov-04 0:19 
GeneralRe: newbie needs help Pin
Steve S19-Nov-04 0:27
Steve S19-Nov-04 0:27 
GeneralRe: newbie needs help Pin
toxcct19-Nov-04 1:01
toxcct19-Nov-04 1:01 
GeneralRe: newbie needs help Pin
Henry miller19-Nov-04 2:19
Henry miller19-Nov-04 2:19 
GeneralRe: newbie needs help Pin
toxcct19-Nov-04 5:40
toxcct19-Nov-04 5:40 
GeneralRe: newbie needs help Pin
Jeryth2-Feb-05 6:14
Jeryth2-Feb-05 6:14 
GeneralRe: newbie needs help Pin
toxcct3-Feb-05 2:47
toxcct3-Feb-05 2:47 
GeneralDatabase for C++ Pin
Gammenon18-Nov-04 23:14
Gammenon18-Nov-04 23:14 
GeneralRe: Database for C++ Pin
Steve S18-Nov-04 23:44
Steve S18-Nov-04 23:44 
GeneralRe: Database for C++ Pin
Gammenon18-Nov-04 23:53
Gammenon18-Nov-04 23:53 
GeneralRe: Database for C++ Pin
Steve S19-Nov-04 0:01
Steve S19-Nov-04 0:01 
GeneralRe: Database for C++ Pin
Gammenon19-Nov-04 0:25
Gammenon19-Nov-04 0:25 
GeneralRe: Database for C++ Pin
Steve S19-Nov-04 0:46
Steve S19-Nov-04 0:46 

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.