Click here to Skip to main content
15,887,436 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: C++ Structure layouts - how to determine padding and what not - VS2008 but it's a general question Pin
k505414-May-21 12:02
mvek505414-May-21 12:02 
GeneralRe: C++ Structure layouts - how to determine padding and what not - VS2008 but it's a general question Pin
harold aptroot14-May-21 18:58
harold aptroot14-May-21 18:58 
GeneralRe: C++ Structure layouts - how to determine padding and what not - VS2008 but it's a general question Pin
charlieg16-May-21 3:46
charlieg16-May-21 3:46 
GeneralRe: C++ Structure layouts - how to determine padding and what not - VS2008 but it's a general question Pin
k505416-May-21 4:51
mvek505416-May-21 4:51 
GeneralRe: C++ Structure layouts - how to determine padding and what not - VS2008 but it's a general question Pin
charlieg16-May-21 6:05
charlieg16-May-21 6:05 
GeneralRe: C++ Structure layouts - how to determine padding and what not - VS2008 but it's a general question Pin
Richard MacCutchan16-May-21 21:21
mveRichard MacCutchan16-May-21 21:21 
GeneralRe: C++ Structure layouts - how to determine padding and what not - VS2008 but it's a general question Pin
charlieg17-May-21 1:37
charlieg17-May-21 1:37 
GeneralRe: C++ Structure layouts - how to determine padding and what not - VS2008 but it's a general question Pin
Bram van Kampen10-Jun-21 14:33
Bram van Kampen10-Jun-21 14:33 
Well, the Packing pragma is very old. A Pragma is an adidional instruction to the compiler,stated in te file to be compiled. In the Packing case, it is about how to align data on Preferred Data Boundaries. A 64 bit CPU is most efficient if all items are stored at addresses, a multiple of 64. Failing to do so, the code will not break down. it will just take (very minutely) longer to execute, but will never break your code.

Now, you can Easily enter "Packing Hell"! That occurs when different packing pragma's are used in different components. Unless if something is critical, the best idea is to leave all packing pragments out, unless you have reasons to use them, e.g. Interfacing a new 64 structure with say old 16 or 32 bit data.
Bram van Kampen

AnswerRe: C++ Structure layouts - how to determine padding and what not - VS2008 but it's a general question Pin
Richard MacCutchan14-May-21 22:19
mveRichard MacCutchan14-May-21 22:19 
AnswerRe: C++ Structure layouts - how to determine padding and what not - VS2008 but it's a general question Pin
charlieg16-May-21 1:57
charlieg16-May-21 1:57 
QuestionHow to migrate qt creator project (that doesn't need qt) to visual studio Pin
PristoMiky12-May-21 2:50
PristoMiky12-May-21 2:50 
AnswerRe: How to migrate qt creator project (that doesn't need qt) to visual studio Pin
_Flaviu12-May-21 23:03
_Flaviu12-May-21 23:03 
GeneralRe: How to migrate qt creator project (that doesn't need qt) to visual studio Pin
Maximilien13-May-21 7:08
Maximilien13-May-21 7:08 
AnswerRe: How to migrate qt creator project (that doesn't need qt) to visual studio Pin
Richard MacCutchan13-May-21 0:11
mveRichard MacCutchan13-May-21 0:11 
QuestionQuestion Arduino programming + joystick + bulbs Pin
titi titi11-May-21 12:55
titi titi11-May-21 12:55 
AnswerRe: Question Arduino programming + joystick + bulbs Pin
CPallini11-May-21 20:23
mveCPallini11-May-21 20:23 
AnswerRe: Question Arduino programming + joystick + bulbs Pin
Richard MacCutchan11-May-21 21:47
mveRichard MacCutchan11-May-21 21:47 
QuestionWaitForMultipleObjects getting access violation in Worker Thread Pin
ForNow9-May-21 13:32
ForNow9-May-21 13:32 
QuestionRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
David Crow9-May-21 16:15
David Crow9-May-21 16:15 
AnswerRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
ForNow9-May-21 16:21
ForNow9-May-21 16:21 
AnswerRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
Victor Nijegorodov9-May-21 20:30
Victor Nijegorodov9-May-21 20:30 
GeneralRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
ForNow10-May-21 2:20
ForNow10-May-21 2:20 
GeneralRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
Victor Nijegorodov10-May-21 3:32
Victor Nijegorodov10-May-21 3:32 
GeneralRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
ForNow10-May-21 3:57
ForNow10-May-21 3:57 
GeneralRe: WaitForMultipleObjects getting access violation in Worker Thread Pin
Victor Nijegorodov10-May-21 4:06
Victor Nijegorodov10-May-21 4:06 

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.