Click here to Skip to main content
15,905,071 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: interact between 2 process - urgent!!!! Pin
Luc Pattyn17-Jan-09 9:32
sitebuilderLuc Pattyn17-Jan-09 9:32 
GeneralRe: interact between 2 process - urgent!!!! Pin
CPallini17-Jan-09 9:43
mveCPallini17-Jan-09 9:43 
GeneralRe: interact between 2 process - urgent!!!! Pin
Luc Pattyn17-Jan-09 9:55
sitebuilderLuc Pattyn17-Jan-09 9:55 
GeneralRe: interact between 2 process - urgent!!!! Pin
Luc Pattyn17-Jan-09 9:57
sitebuilderLuc Pattyn17-Jan-09 9:57 
JokeRe: interact between 2 process - urgent!!!! Pin
CPallini17-Jan-09 22:30
mveCPallini17-Jan-09 22:30 
QuestionProblem with record reading from a binary file Pin
Umer Aziz17-Jan-09 1:05
Umer Aziz17-Jan-09 1:05 
AnswerRe: Problem with record reading from a binary file Pin
Garth J Lancaster17-Jan-09 1:10
professionalGarth J Lancaster17-Jan-09 1:10 
AnswerRe: Problem with record reading from a binary file Pin
Stuart Dootson17-Jan-09 1:16
professionalStuart Dootson17-Jan-09 1:16 
The compiler want's to align data so that it can be accessed efficiently. This generally means aligning the data on an n-byte boundary (so the address of the data is a multiple of n), or whatever it takes because processor operations are optimised for reading aligned data. What this means in practise is that integers, floats and structures are on 4 or 8 byte boundaries.

When this is applied to data in a structure, it can mean that padding is inserted to ensure that items with alignment requirements (such as integers) are correctly aligned. This is what you are seeing.

For more information, here's a Wikipedia page on the subject[^].
GeneralRe: Problem with record reading from a binary file Pin
Luc Pattyn17-Jan-09 4:24
sitebuilderLuc Pattyn17-Jan-09 4:24 
AnswerRe: Problem with record reading from a binary file Pin
Umer Aziz17-Jan-09 18:21
Umer Aziz17-Jan-09 18:21 
QuestionBlum-Blum-Shub Pin
RomTibi17-Jan-09 0:04
RomTibi17-Jan-09 0:04 
AnswerRe: Blum-Blum-Shub Pin
Garth J Lancaster17-Jan-09 0:30
professionalGarth J Lancaster17-Jan-09 0:30 
GeneralRe: Blum-Blum-Shub Pin
RomTibi17-Jan-09 2:55
RomTibi17-Jan-09 2:55 
GeneralRe: Blum-Blum-Shub Pin
Garth J Lancaster17-Jan-09 15:39
professionalGarth J Lancaster17-Jan-09 15:39 
GeneralRe: Blum-Blum-Shub Pin
RomTibi17-Jan-09 22:39
RomTibi17-Jan-09 22:39 
GeneralRe: Blum-Blum-Shub Pin
RomTibi18-Jan-09 7:55
RomTibi18-Jan-09 7:55 
JokeYaba-daba-du! Pin
CPallini17-Jan-09 5:08
mveCPallini17-Jan-09 5:08 
GeneralRe: Yaba-daba-du! Pin
Garth J Lancaster17-Jan-09 15:28
professionalGarth J Lancaster17-Jan-09 15:28 
GeneralRe: Yaba-daba-du! Pin
RomTibi17-Jan-09 22:42
RomTibi17-Jan-09 22:42 
GeneralRe: Yaba-daba-du! Pin
RomTibi17-Jan-09 22:41
RomTibi17-Jan-09 22:41 
GeneralRe: Yaba-daba-du! Pin
ThatsAlok18-Jan-09 18:15
ThatsAlok18-Jan-09 18:15 
GeneralRe: Yaba-daba-du! Pin
RomTibi21-Jan-09 7:52
RomTibi21-Jan-09 7:52 
Questionmultithread Pin
RomTibi17-Jan-09 0:02
RomTibi17-Jan-09 0:02 
AnswerRe: multithread Pin
Garth J Lancaster17-Jan-09 0:41
professionalGarth J Lancaster17-Jan-09 0:41 
GeneralRe: multithread Pin
RomTibi17-Jan-09 2:43
RomTibi17-Jan-09 2:43 

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.