Click here to Skip to main content
15,922,007 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to find out the size of a structure without using sizeof Pin
CPallini11-Jul-07 3:14
mveCPallini11-Jul-07 3:14 
QuestionRe: How to find out the size of a structure without using sizeof Pin
David Crow11-Jul-07 3:16
David Crow11-Jul-07 3:16 
AnswerRe: How to find out the size of a structure without using sizeof Pin
Rajasegar11-Jul-07 3:22
Rajasegar11-Jul-07 3:22 
QuestionRe: How to find out the size of a structure without using sizeof Pin
David Crow11-Jul-07 3:31
David Crow11-Jul-07 3:31 
AnswerRe: How to find out the size of a structure without using sizeof Pin
CPallini11-Jul-07 3:26
mveCPallini11-Jul-07 3:26 
QuestionRe: How to find out the size of a structure without using sizeof Pin
David Crow11-Jul-07 3:28
David Crow11-Jul-07 3:28 
AnswerRe: How to find out the size of a structure without using sizeof Pin
CPallini11-Jul-07 3:32
mveCPallini11-Jul-07 3:32 
GeneralRe: How to find out the size of a structure without using sizeof Pin
Emmanouil11-Jul-07 3:47
Emmanouil11-Jul-07 3:47 
I agree. sizeof will return different size for the same structure if executed in different platforms i.e linux vs windows and thus different compilers. This is due to padding and alignment of members for optimization purposes in the memory. There are macros or compiler options that can be used to eliminate padding i.e to use 1 byte padding always. If i remember correctly this will be the "pack(1)" macro and in Visual C++ the compiler option /Z1 (I think) can be used to force 1 byte padding. This will give more consistent results with sizeof... Smile | :) .

GeneralRe: How to find out the size of a structure without using sizeof Pin
David Crow11-Jul-07 4:02
David Crow11-Jul-07 4:02 
AnswerRe: How to find out the size of a structure without using sizeof Pin
Bram van Kampen11-Jul-07 15:16
Bram van Kampen11-Jul-07 15:16 
GeneralRe: How to find out the size of a structure without using sizeof Pin
DevMentor.org11-Jul-07 19:11
DevMentor.org11-Jul-07 19:11 
QuestionHelp: Media seek in directshow Pin
liur1711-Jul-07 2:34
liur1711-Jul-07 2:34 
AnswerRe: Help: Media seek in directshow Pin
Mark Salsbery11-Jul-07 9:13
Mark Salsbery11-Jul-07 9:13 
GeneralRe: Help: Media seek in directshow Pin
liur1711-Jul-07 14:29
liur1711-Jul-07 14:29 
Questionfatal error C1083: Cannot open include file: 'dshow.h': No such file or directory Pin
yaminisridaran11-Jul-07 1:12
yaminisridaran11-Jul-07 1:12 
AnswerRe: fatal error C1083: Cannot open include file: 'dshow.h': No such file or directory Pin
Sam_c11-Jul-07 2:10
Sam_c11-Jul-07 2:10 
GeneralRe: fatal error C1083: Cannot open include file: 'dshow.h': No such file or directory Pin
yaminisridaran11-Jul-07 2:18
yaminisridaran11-Jul-07 2:18 
GeneralRe: fatal error C1083: Cannot open include file: 'dshow.h': No such file or directory Pin
Sam_c11-Jul-07 2:39
Sam_c11-Jul-07 2:39 
GeneralRe: fatal error C1083: Cannot open include file: 'dshow.h': No such file or directory Pin
liur1711-Jul-07 2:41
liur1711-Jul-07 2:41 
AnswerRe: fatal error C1083: Cannot open include file: 'dshow.h': No such file or directory Pin
kdehairy11-Jul-07 2:51
kdehairy11-Jul-07 2:51 
QuestionRe: fatal error C1083: Cannot open include file: 'dshow.h': No such file or directory Pin
David Crow11-Jul-07 3:14
David Crow11-Jul-07 3:14 
AnswerRe: fatal error C1083: Cannot open include file: 'dshow.h': No such file or directory Pin
yaminisridaran11-Jul-07 18:35
yaminisridaran11-Jul-07 18:35 
AnswerRe: fatal error C1083: Cannot open include file: 'dshow.h': No such file or directory Pin
yaminisridaran11-Jul-07 18:39
yaminisridaran11-Jul-07 18:39 
GeneralRe: fatal error C1083: Cannot open include file: 'dshow.h': No such file or directory Pin
Hamid_RT11-Jul-07 19:35
Hamid_RT11-Jul-07 19:35 
AnswerRe: fatal error C1083: Cannot open include file: 'dshow.h': No such file or directory Pin
Mark Salsbery11-Jul-07 9:18
Mark Salsbery11-Jul-07 9:18 

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.